rtmp: do not raise an error in case of metadata packets (#577)

This commit is contained in:
aler9 2021-09-30 11:57:03 +02:00
parent fc46c33a96
commit e62ed283d1
2 changed files with 0 additions and 6 deletions

View File

@ -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)
}
}
}

View File

@ -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)
}
}
}()