This commit is contained in:
banshan
2021-03-19 14:22:34 +08:00
parent dc65348ccb
commit b7d59b0198

View File

@@ -2,6 +2,7 @@ package rtsp
import (
"bufio"
"embed"
"fmt"
"log"
"net"
@@ -29,12 +30,17 @@ var config = struct {
}
}{":554", false, "rtsp://localhost/${streamPath}", 0, false, nil}
//go:embed ui/*
//go:embed README.md
var ui embed.FS
func init() {
InstallPlugin(&PluginConfig{
Name: "RTSP",
Type: PLUGIN_PUBLISHER | PLUGIN_HOOK,
Config: &config,
Run: runPlugin,
UIFile: &ui,
HotConfig: map[string]func(interface{}){
"AutoPull": func(value interface{}) {
config.AutoPull = value.(bool)