增加点播读取flv文件功能

This commit is contained in:
李宇翔
2021-06-24 15:44:43 +08:00
parent e02dc36bdd
commit ead7f0ac39
2 changed files with 21 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ func init() {
func run() {
go AddHook(HOOK_PUBLISH, onPublish)
os.MkdirAll(config.Path, 0755)
http.HandleFunc("/vod/", VodHandler)
http.HandleFunc("/api/record/flv/list", func(w http.ResponseWriter, r *http.Request) {
CORS(w, r)
if files, err := tree(config.Path, 0); err == nil {