-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Is it possible to detect if a browser supports Native Player ? #6574
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
I don't think there's really a way to detect it. iPhones and older iPads used native playback in fullscreen (and on iPhone always unless inline is set). But I've seen some other browsers on Android and what not that implement their own "native" playback. |
@gkatsev Thanks for the response, right now VideoJS is doing that internally by not loading their custom controls on a device that supports native playback, if could access the same check, i would not add a modal, instead would directly trigger a play which would play it in a Native fullscreen player. |
You can try using |
@gkatsev i tried with the |
Looks like the code for it here Lines 102 to 109 in a37f853
|
@gkatsev , thanks for your response,
By this devices that doesn't support native playback played the video in my custom modal, iOS devices that supported native playback, i can destroy or close the custom modal on close of native players close. |
Description
I am trying to initialise a video playback from a CTA, by creating a dynamic video tag with a modal popup to play video in desktop, play the video in native fullscreen in mobile devices which supports native playback.
After playback will kill destroy the instance on modal close or native player close event.
Issue
Right now the issue is, modal loads up in mobile & later video starts playing into native fullscreen in iPhone.
Hence i would like to know is there any way i could detect if a browser supports native playback & load the video without a custom modal. Such that the transition from click of CTA to native player will be seamless.
Regards,
Chandar Sunderraj
The text was updated successfully, but these errors were encountered: