Bug 262791 - Conflicting Video Codec Payload Types in Safari WebRTC Screen Sharing
Summary: Conflicting Video Codec Payload Types in Safari WebRTC Screen Sharing
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-06 09:10 PDT by Mukesh
Modified: 2023-10-13 09:11 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mukesh 2023-10-06 09:10:15 PDT
I have identified a issue related to WebRTC video codec negotiation during screen sharing sessions in Safari. This problem occurs when two participants are involved in a video call, one using Safari on macOS (User A) and the other using Chrome/Edge on a desktop (User B). The following steps outline the issue:

User A initiates a video call to User B.
User B answers the call with video enabled.
Both users turn off their cameras.
User A begins sharing their screen.
User B attempts to share their screen while User A is already sharing.

The issue arises when the participants initially negotiate video codecs, either "rtx/9000" or "H264/9000." 
During subsequent renegotiation, User B sends the video codec "a=rtpmap:122 rtx/9000" for screen sharing. 
User A accepts this codec, but when User A attempts to share their screen, there are conflicting payload types with different codec names (a=rtpmap:122 H264/9000) in the Session Description Protocol (SDP). 

This results in the following error: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. a=rtpmap:122 H264/90000 Duplicate payload type with conflicting codec name or clock rate.


Expected behaviour: sdp should not consist duplicate payload.
Comment 1 :fippo 2023-10-10 23:30:44 PDT
known libwebrtc issue, see https://bugs.chromium.org/p/webrtc/issues/detail?id=12747
Comment 2 Radar WebKit Bug Importer 2023-10-13 09:11:14 PDT
<rdar://problem/116922568>