[Webkit-unassigned] [Bug 239978] New: replaceTrack with different constraints stops sending packets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 2 12:19:04 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239978

            Bug ID: 239978
           Summary: replaceTrack with different constraints stops sending
                    packets
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: makarand at gmail.com
                CC: youennf at gmail.com

One of our (twilio) customers noticed this bug. They found it on iOS 15.4, but I see that we can reproduce it on Safari 15.4 running on MacOS as well.  

Easy repro steps using 

https://codepen.io/makarand-patwardhan/pen/yLvyJgB

1. Click on Start Demo:
   This will establish webrtc between two peer connection with one party publishing an audio track

2. Notice that packets are flowing nicely between Peers.

3. Check on Music Mode and click on Update Track 
   This will cause a new audio track to get acquired using different constrains than used originally. 
   This new track is then used to replaceTrack (https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)

At this point notice that the packets stop flowing and after about 20 seconds you see an error "A MediaStreamTrack ended due to a capture failure" on console.


Notice that in Step 3 if you did not change the music Mode (that is use the same constraints as before you do not see this error)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220502/3efefb88/attachment.htm>


More information about the webkit-unassigned mailing list