Skip to content

Commit

Permalink
Clear RTP Extensions before sending
Browse files Browse the repository at this point in the history
Resolves #32
  • Loading branch information
Sean-Der committed Dec 17, 2023
1 parent e50e4a5 commit 41fe37c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/webrtc/whip.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func videoWriter(remoteTrack *webrtc.TrackRemote, stream *stream, peerConnection
return
}

rtpPkt.Extension = false
rtpPkt.Extensions = nil

timeDiff := rtpPkt.Timestamp - lastTimestamp
if lastTimestamp == 0 {
timeDiff = 0
Expand Down

0 comments on commit 41fe37c

Please sign in to comment.