mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-21 22:59:37 +08:00
rtmp: do not raise an error in case of metadata packets (#577)
This commit is contained in:
@@ -552,9 +552,6 @@ func (c *rtmpConn) runPublish(ctx context.Context) error {
|
|||||||
for _, byts := range bytss {
|
for _, byts := range bytss {
|
||||||
onFrame(audioTrackID, byts)
|
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 {
|
for _, byts := range bytss {
|
||||||
onFrame(audioTrackID, byts)
|
onFrame(audioTrackID, byts)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Reference in New Issue
Block a user