jitsi / jitsi-meet-torture

Apache License 2.0
161 stars 149 forks source link

fix(StartMutedTest): Modify startWithAudioVideoMutedCanUnmute. #638

Closed jallamsetty1 closed 7 months ago

jallamsetty1 commented 7 months ago

Only add the first participant as audio and video muted. When p1 and p2 join muted, p1 and p2 unute their audio and video sequentially, the media from p1 reaches before signaling for p1 sources reaches p2. The browser creates a receiver when it receives a packet on certain mid/ssrc. So when the client tries to set the remote description after signaling is received, this results in a collision causing the setRemoteDescription call to fail with the error: Error: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote offer sdp: Failed to add remote stream ssrc: 1981416894 to {mid: 1, media_type: video}