rtmp: do not raise an error in case of metadata packets (#577)
This commit is contained in:
parent
fc46c33a96
commit
e62ed283d1
|
@ -552,9 +552,6 @@ func (c *rtmpConn) runPublish(ctx context.Context) error {
|
|||
for _, byts := range bytss {
|
||||
onFrame(audioTrackID, byts)
|
||||
}
|
||||
|
||||
default:
|
||||
return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -241,9 +241,6 @@ func (s *rtmpSource) runInner() bool {
|
|||
for _, byts := range bytss {
|
||||
onFrame(audioTrackID, byts)
|
||||
}
|
||||
|
||||
default:
|
||||
return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue