[webkit-changes] [WebKit/WebKit] 00222b: [visionOS] Multi-window audio is coming from wrong...

Jer Noble noreply at github.com
Tue May 21 21:15:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 00222bd02ce4989173cf86ecbf3bb74fd408e9d2
      https://github.com/WebKit/WebKit/commit/00222bd02ce4989173cf86ecbf3bb74fd408e9d2
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

  Log Message:
  -----------
  [visionOS] Multi-window audio is coming from wrong location
https://bugs.webkit.org/show_bug.cgi?id=274493
rdar://128499204

Reviewed by Andy Estes and Sam Weinig.

Initially, a MediaPlayerPrivateAVFoundationObjC will have an AVPlayer but no AVPlayerLayer, so
will get the "default" spatial tracking label. When an AVPlayerLayer is created (or destroyed!)
the tracking label will need to be re-calculated.

* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerLayer):
(WebCore::MediaPlayerPrivateAVFoundationObjC::updateSpatialTrackingLabel):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list