WebKit
WebKit copied to clipboard
[iOS] Camera track is sometimes muted/unmuted when starting to capture
05c0e82b2712e5fec50610c7ddaa8798b4688975
[iOS] Camera track is sometimes muted/unmuted when starting to capture https://bugs.webkit.org/show_bug.cgi?id=274211 rdar://125475254 Reviewed by NOBODY (OOPS!). There is a race condition below WebKit between media endowment activation and camera start-u. This sometimes triggers spurious notification of being muted on iOS. We add a timer that will delay mute notifications at startup time for 1 second. WIP, needs more testing. * Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h: * Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::AVVideoCaptureSource): (WebCore::AVVideoCaptureSource::startupTimerFired): (WebCore::AVVideoCaptureSource::startProducingData): (WebCore::AVVideoCaptureSource::captureSessionIsRunningDidChange):
https://github.com/WebKit/WebKit/commit/05c0e82b2712e5fec50610c7ddaa8798b4688975
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/05c0e82b2712e5fec50610c7ddaa8798b4688975)
EWS run on current version of this PR (hash https://github.com/WebKit/WebKit/commit/487705fc95ade9997d88320f043a92f5b7da7c42)
Committed 278952@main (da808677339d): https://commits.webkit.org/278952@main
Reviewed commits have been landed. Closing PR #28593 and removing active labels.
๐ wpe