适配引擎4.3.0变化

This commit is contained in:
dexter
2022-06-20 12:56:16 +08:00
parent b0f450d837
commit 933fb3cced
8 changed files with 93 additions and 73 deletions

2
raw.go
View File

@@ -17,6 +17,8 @@ type RawRecorder struct {
func (r *RawRecorder) OnEvent(event any) {
r.Recorder.OnEvent(event)
switch v := event.(type) {
case *RawRecorder:
go r.Start()
case *track.Video:
if r.Ext == "." {
if v.CodecID == codec.CodecID_H264 {