Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2464f16d3d6d11f34c0991d00dbf205af7ac0031
      
https://github.com/WebKit/WebKit/commit/2464f16d3d6d11f34c0991d00dbf205af7ac0031
  Author: Andy Estes <[email protected]>
  Date:   2024-03-15 (Fri, 15 Mar 2024)

  Changed paths:
    M Source/WebKit/Platform/ios/PlaybackSessionInterfaceLMK.mm
    M Source/WebKit/Platform/ios/VideoPresentationInterfaceLMK.mm

  Log Message:
  -----------
  [visionOS] Video fails to render after returning from LinearMediaPlayer 
fullscreen
https://bugs.webkit.org/show_bug.cgi?id=271024
rdar://123333859

Reviewed by Eric Carlson.

When returning from LinearMediaPlayer fullscreen we failed to clear the video 
receiver endpoint from
MediaPlayer, leaving it in a state where it was rendering to an endpoint that 
no longer existed. We
attempted to clear the endpoint in PlaybackSessionInterfaceLMK's implementation 
of
-linearMediaPlayer:didExitFullscreenWithError:, but it turns out this delegate 
method isn't called
when using `allowFullScreenFromInline`. Instead, clear the entpoint in 
-linearMediaPlayerToggleInlineMode:.

With this bug fixed, there is a second issue where the inline controls do not 
appear. This ended up
being a side effect of setting VideoPresentationInterface's captionsLayer on 
the LinearMediaPlayer.
Since there is still outstanding work for supporting captions (see 
rdar://124223292), for now just
pass an empty layer to LinearMediaPlayer.

* Source/WebKit/Platform/ios/PlaybackSessionInterfaceLMK.mm:
(-[WKLinearMediaPlayerDelegate linearMediaPlayerToggleInlineMode:]):
(-[WKLinearMediaPlayerDelegate linearMediaPlayer:didExitFullscreenWithError:]): 
Deleted.
* Source/WebKit/Platform/ios/VideoPresentationInterfaceLMK.mm:
(WebKit::VideoPresentationInterfaceLMK::setupPlayerViewController):

Canonical link: https://commits.webkit.org/276179@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