Browse Source

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

pull/639/head
aler9 5 years ago
parent
commit
e62ed283d1
  1. 3
      internal/core/rtmp_conn.go
  2. 3
      internal/core/rtmp_source.go

3
internal/core/rtmp_conn.go

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

3
internal/core/rtmp_source.go

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

Loading…
Cancel
Save