mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-10-06 01:07:00 +08:00
增加点播读取flv文件功能
This commit is contained in:
1
main.go
1
main.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user