mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-11-03 02:43:33 +08:00
fix: every device use a client
This commit is contained in:
3
vod.go
3
vod.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user