Reuse same document capture sources for getUserMedia calls. This will allow to use only one AVVideoCaptureSource per document. And this will also reduce the amount of muting done on iOS when getUserMedia is called.
Created attachment 433130 [details] Patch
Comment on attachment 433130 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433130&action=review > Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp:560 > + if (device.type() != CaptureDevice::DeviceType::Camera) Is there any reason to not support `CaptureDevice::DeviceType::Screen` here as well? > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:273 > + audioSource->applyConstraints(m_request.audioConstraints); Won't this also reconfigure the existing track? > Source/WebCore/Modules/mediastream/UserMediaRequest.cpp:277 > + videoSource->applyConstraints(m_request.videoConstraints); Ditto.
<rdar://problem/80629508>
*** This bug has been marked as a duplicate of bug 241548 ***