update pion, export vp8munger header (#684)

* update pion, export vp8munger header

* fix test
This commit is contained in:
cnderrauber
2022-05-13 17:20:52 +08:00
committed by GitHub
parent 710e06b7da
commit fa53da18e7
7 changed files with 29 additions and 23 deletions
+1 -5
View File
@@ -55,13 +55,9 @@ func ToProtoParticipants(participants []types.LocalParticipant) []*livekit.Parti
}
func ToProtoSessionDescription(sd webrtc.SessionDescription) *livekit.SessionDescription {
sdp := sd.SDP
// enable mixed of one-byte and two-byte rtp extension
// TODO : should move this to pion's option
sdp = strings.Replace(sdp, "m=", "a=extmap-allow-mixed\r\nm=", 1)
return &livekit.SessionDescription{
Type: sd.Type.String(),
Sdp: sdp,
Sdp: sd.SDP,
}
}