diff --git a/internal/core/webrtc_incoming_track.go b/internal/core/webrtc_incoming_track.go index d994fa87..1489c294 100644 --- a/internal/core/webrtc_incoming_track.go +++ b/internal/core/webrtc_incoming_track.go @@ -99,6 +99,11 @@ func (t *webRTCIncomingTrack) start(stream *stream) { return } + // sometimes Chrome sends empty RTP packets. ignore them. + if len(pkt.Payload) == 0 { + continue + } + stream.writeRTPPacket(t.media, t.format, pkt, time.Now()) } }()