mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-10-16 05:40:51 +08:00
fix: multiple record
This commit is contained in:
9
raw.go
9
raw.go
@@ -31,6 +31,15 @@ func (r *RawRecorder) Start(streamPath string) error {
|
||||
}
|
||||
return r.start(r, streamPath, SUBTYPE_RAW)
|
||||
}
|
||||
|
||||
func (r *RawRecorder) StartWithFileName(streamPath string, fileName string) error {
|
||||
r.ID = streamPath + "/raw/" + fileName
|
||||
if r.IsAudio {
|
||||
r.ID += "_audio"
|
||||
}
|
||||
return r.start(r, streamPath, SUBTYPE_RAW)
|
||||
}
|
||||
|
||||
func (r *RawRecorder) Close() (err error) {
|
||||
if r.File != nil {
|
||||
err = r.File.Close()
|
||||
|
Reference in New Issue
Block a user