Bug 273318

Summary: [WebRTC][GStreamer] Missing media in SDP if setConfiguration() is called after createDataChannel() or addTransceiver()
Product: WebKit Reporter: Carlos Bentzen <cadubentzen>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: philn, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos Bentzen
Reported 2024-04-26 07:01:16 PDT
In the script below: const pc = new RTCPeerConnection(); pc.createDataChannel("data-channel") pc.setConfiguration({}); await pc.setLocalDescription(); const sdp = pc.localDescription.sdp; sdp should contain a line like "m=application 9 UDP/DTLS/SCTP webrtc-datachannel", but with the GstWebRTC backend that's not true. The line is back in the SDP if pc.setConfiguration({}) is removed.
Attachments
Carlos Bentzen
Comment 1 2024-04-26 07:06:14 PDT
(patch incoming soon)
Carlos Bentzen
Comment 2 2024-04-26 08:05:32 PDT
EWS
Comment 3 2024-04-29 01:54:21 PDT
Committed 278099@main (1bc81c31ff6c): <https://commits.webkit.org/278099@main> Reviewed commits have been landed. Closing PR #27802 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2024-04-29 01:55:16 PDT
Note You need to log in before you can comment on or make changes to this bug.