fix: every device use a client

This commit is contained in:
langhuihui
2024-08-02 17:03:08 +08:00
parent d7fb4e26ee
commit f95fb4f4f5

3
vod.go
View File

@@ -2,7 +2,6 @@ package record
import (
"bufio"
"fmt"
"go.uber.org/zap"
"io"
"io/fs"
@@ -129,7 +128,7 @@ func (conf *RecordConfig) Play_flv_(w http.ResponseWriter, r *http.Request) {
return
}
filePath := filepath.Join(dir, info.Name())
fmt.Println("read", filePath)
plugin.Debug("read", zap.String("file", filePath))
file, err := os.Open(filePath)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)