简体   繁体   中英

How can I detect whether or not a device uses it's own video player rather than the HTML5 player?

How can I detect whether the actual HTML5 player is being used, or if a 3rd party player is hi-jacking the video outside of HTML5?

iPhone doesn't use the HTML5 video player (thanks Apple) but rather uses its own player full-screen. This means any apps, regardless of responsive design, don't work if they expect an interface to be involved with the video.

So I need to know this in order to either make my app work differently with devices that do something similar to iPhone, or at least fail gracefully.

As I told in you in my comment, it seems that is not possible .

So I am afraid that you will need to go for agent sniffing. Check this post to see how to identify an iOS device .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM