[Webkit-unassigned] [Bug 179363] iOS calling getUserMedia() again kills video display of first getUserMedia()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 30 23:14:42 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=179363
Olivier Anguenot <oanguenot at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |oanguenot at gmail.com
--- Comment #21 from Olivier Anguenot <oanguenot at gmail.com> ---
Had the same problem with audio only tracks.
In my use case, I create several PeerConnections to connect to several audio rooms in FreeSwitch using Janus as a WebRTC Gateway.
I faced the same issue: my first line was muted as soon as the second was created.
Additionally to that, the complexity was that the WebRTC part is mainly managed by Janus and the SIP plugin... But hopefully, there is a way to access to the PeerConnection object from Janus.
The solution I found is a workaround and fixing that issue will for sure help to handle the case correctly.
1/ I added an handler on the "onmute" event on the local track associated to each room connected.
2/ When one of my local track goes to "muted", I try to find in the other existing local tracks, a track which is not muted
3/ I clone that track
4/ I use the PeerConnection -> Sender -> replaceTrack() function
"Magically", it seems to work. I'm able to speak and be heard in the room associated to that track.
But, not sure on what is the consequence on that (listeners for example...)
--
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/20210701/715aab66/attachment-0001.htm>
More information about the webkit-unassigned
mailing list