-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tvOS][QOL] Supports back button click when in the native player. #947
Conversation
ping @LePips for review or please assign to whomever is appropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some cleanup, good to have the refactor comment about subclassing from AVPlayerViewController
. Yeah it says subclassing isn't supported but we can generally get away/lazy with it, but we should wrap that into a parent view/VC that interacts with the underlying AVPlayerViewController
.
Done. PTAL. |
Conforms
UINativeVideoPlayerViewController
toAVPlayerViewControllerDelegate
and implementsplayerViewControllerShouldDismiss
. This method is called by AV player view controller when the player should be dismissed. This function is only called when the playback overlay is not displayed otherwise a back button press will dismiss the overlay.Fixes #925