-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tvOS] Add experimental runtime support for AVKit fullscreen
https://bugs.webkit.org/show_bug.cgi?id=262814 rdar://116599008 Reviewed by Jer Noble. Added experimental support for AVKit fullscreen on tvOS. Full support cannot be implemented until new APIs are available (see rdar://116592344), but this provides a proof-of-concept implementation by implementing the AVPlayerController interface expected by tvOS's AVPlayerViewController and injecting a custom AVPlayerLayerView into AVPlayerViewController's view hierarchy. This change also opts tvOS into iOS media controls layout traits and works around an issue related to WKWebView visibility when AVPlayerViewController is modally presented on top of it. * Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::layoutTraitsClassName const): * Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h: * Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.mm: * Source/WebCore/PAL/pal/spi/cocoa/AVKitSPI.h: * Source/WebCore/PAL/pal/spi/cocoa/FoundationSPI.h: * Source/WebCore/platform/cocoa/WebAVPlayerLayer.h: * Source/WebCore/platform/cocoa/WebAVPlayerLayer.mm: (-[WebAVPlayerLayer legibleContentInsets]): (-[WebAVPlayerLayer setLegibleContentInsets:]): * Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm: (-[WebAVPlayerViewController initWithFullscreenInterface:]): (-[WebAVPlayerViewController configurePlayerViewControllerWithFullscreenInterface:]): * Source/WebCore/platform/ios/WebAVPlayerController.h: * Source/WebCore/platform/ios/WebAVPlayerController.mm: (-[WebAVPlayerController init]): (-[WebAVPlayerController player]): (-[WebAVPlayerController currentItem]): (+[WebAVPlayerController keyPathsForValuesAffectingEffectiveRateNonZero]): (-[WebAVPlayerController effectiveRateNonZero]): (-[WebAVPlayerController forwardPlaybackEndTime]): (-[WebAVPlayerController backwardPlaybackEndTime]): (+[WebAVPlayerController keyPathsForValuesAffectingIsSeekingTV]): (-[WebAVPlayerController isSeekingTV]): (-[WebAVPlayerController hasStartAndEndDates]): (-[WebAVPlayerController timeRangeSeekable]): (-[WebAVPlayerController hasItem]): (-[WebAVPlayerController isPlaybackLikelyToKeepUp]): (-[WebAVPlayerController overrideForForwardPlaybackEndTime]): (-[WebAVPlayerController overrideForReversePlaybackEndTime]): (-[WebAVPlayerController timebaseRate]): (-[WebAVPlayerController externalMetadata]): (+[WebAVPlayerController keyPathsForValuesAffectingTimeControlStatus]): (-[WebAVPlayerController timeControlStatus]): (+[WebAVPlayerController keyPathsForValuesAffectingDisplayedDuration]): (-[WebAVPlayerController displayedDuration]): (-[WebAVPlayerController contentDurationCached]): (-[WebAVPlayerController currentDisplayTime]): (-[WebAVPlayerController currentOrEstimatedDate]): (+[WebAVPlayerController keyPathsForValuesAffectingCurrentTime]): (-[WebAVPlayerController currentTime]): (-[WebAVPlayerController displayTimeRangeForNavigation]): (-[WebAVPlayerController isAtMaxTime]): (-[WebAVPlayerController isContentDurationIndefinite]): (-[WebAVPlayerController timeRangeForNavigation]): (-[WebAVPlayerController timeFromDisplayTime:]): (-[WebAVPlayerController displayTimeFromTime:]): (-[WebAVPlayerController activeRate]): (-[WebAVPlayerController setActiveRate:]): (-[WebAVPlayerController requestNavigateToTime:fromTime:reason:playWhenReady:permissionHandler:seekCompleti (-[WebAVPlayerController seekToTime:seekReason:completionHandler:]): (-[WebAVPlayerController requestSeekToTime:seekReason:permissionHandler:completionHandler:]): (-[WebAVPlayerController requestPauseWithCompletion:]): (-[WebAVPlayerController requestPlayWithCompletion:]): (-[WebAVPlayerController requestSeekToTime:reason:playWhenReady:]): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::viewDidLeaveWindow): Canonical link: https://commits.webkit.org/269032@main
- Loading branch information
Showing
11 changed files
with
355 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.