-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
When Iphone & set "playsinline" attribute - need to show fullscreen button #3832
Comments
The ideal would be to use the standard and if it is not supported check if the webkit methods are supported: Mote info in: https://developer.apple.com/documentation/webkitjs/htmlvideoelement/ |
I can send a PR for this, if anyone is interested. |
@avelad, I'm not certain what you are proposing. It sounds different from what @byungjuJin wrote. Can you elaborate? We already have a fullscreen polyfill to use the webkit methods when they are the only ones available. It sounded to me like what @byungjuJin was saying was this: Solution 1: If on iOS, and playsinline attribute is not set, hide/disable fullscreen button in UI. |
And this is in spite of having the playsinline attribute on the video element in our demo. We have this in the fullscreen button's constructor: // Don't show the button if fullscreen is not supported
if (!document.fullscreenEnabled) {
this.button_.classList.add('shaka-hidden');
} And we polyfill Solution 1: Make the fullscreen polyfill more in-depth, using something like Solution 2 is simplest. Solution 1 benefits apps that don't use our UI, but also don't have iOS-specific UI code, at the expense of more complexity. I'm leaning toward solution 2 or 3. I think if you've built your own UI, and you support iOS, you probably already have code for this in your UI. Our UI has more context than a polyfill (is associated with a specific video element), and so it can do a good job with less code, even if that code has platform-specific details in it. |
Have you read the FAQ and checked for duplicate open issues?
YES
Is your feature request related to a problem? Please describe.
Use Iphone.
Normally Safari only allow fullscreen when click play.
But with set "playsinline" attribute on
Describe the solution you'd like
Describe alternatives you've considered
Before new feature, I should make a fullscreen button as a custom button.
Additional context
I know why someone write this : safari is the new IE
The text was updated successfully, but these errors were encountered: