Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ca83b80de2e2d899b5a389b96dee5c2f23f6d130
      
https://github.com/WebKit/WebKit/commit/ca83b80de2e2d899b5a389b96dee5c2f23f6d130
  Author: Youenn Fablet <[email protected]>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h
    M Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm

  Log Message:
  -----------
  [iOS] AVVideoCaptureSource is not handling the case of another application 
changing the device videoZoomFactor
https://bugs.webkit.org/show_bug.cgi?id=271643
rdar://125351159

Reviewed by Eric Carlson.

When another application is changing the device zoom, it got access to the 
device so AVVideoCaptureSource is not running.
When AVVideoCaptureSource restarts, we just have to reapply the device zoom.

Remove AVVideoCaptureSource::m_appliedZoom since the device videoZoomFactor can 
change when other iOS apps get access to the camera.
We thus always compare the zoom to be applied with the device zoom.

* Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h:
* Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::AVVideoCaptureSource::setSessionSizeFrameRateAndZoom):

Canonical link: https://commits.webkit.org/276731@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to