This commit is contained in:
banshan
2021-03-19 14:29:15 +08:00
parent 2f2c1ad1bd
commit 9f0d42e4c0
2 changed files with 7 additions and 1 deletions

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/Monibuca/plugin-webrtc
go 1.13
go 1.16
require (
github.com/Monibuca/engine/v2 v2.2.5

View File

@@ -1,6 +1,7 @@
package webrtc
import (
"embed"
"encoding/json"
"fmt"
"io/ioutil"
@@ -52,6 +53,10 @@ var config struct {
// port int
// }
//go:embed ui/*
//go:embed README.md
var ui embed.FS
var playWaitList WaitList
var reg_level = regexp.MustCompile("profile-level-id=(4.+f)")
@@ -80,6 +85,7 @@ func init() {
Name: "WebRTC",
Type: PLUGIN_PUBLISHER | PLUGIN_SUBSCRIBER,
Run: run,
UIFile: &ui,
})
}