Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why does apple devices play html5 videos in its own player?

I tried different html players and used html5 video tag. However apple devices (ipod touch 4, iphone 4, ipad) shows html5 videos in its own player.

My main goal is to show overlay adverts on video. I decided to hide/show div with the help of absolute positioning and z-index. It worked for browsers in my PC, however couldn't manage in apple devices.

In order to show advert on apple devices, firstly I need to use my own html5 player, not apple's default video player.

Is my approach possible or are there any workarounds? Any ideas will be highly appreciated.

Thanks,

editted

There is an attribute "webkit-playsinline". But that does not work either. I think it only works in app programming with UIWebView.

<video id="video" width="480" height="320" webkit-playsinline>
like image 781
efeyc Avatar asked Dec 20 '11 07:12

efeyc


People also ask

Does Apple use HTML5?

"Every new Apple mobile device and every new Mac — along with the latest version of Apple's Safari web browser — supports web standards including HTML5, CSS3, and JavaScript.

How do I change my default video player on my iPhone?

In the Applications Manager, locate the app you're currently using to play music or movies, and then tap to open it. Scroll down to the Launch By Default section, or something similar, and then tap Clear defaults. The next time you open a music or video file, you are prompted to select a default player.

What is Apple's default video player?

Part 1. How to Change Default Video Player on Mac. The QuickTime Player is the default media player for the Mac OS.

Does Apple Safari support HTML5?

Safari does not support HTML5 Save functionality. Help... This functionality works fine in Chrome, FireFox, Opera and even in IE and Edge.


1 Answers

Sorry, but you can't use another player. Any browser with html5 supporting can you few different players. Every player build in to browser. It is part of browser. When you use your apple device for browsing you can use only Safari (and Opera). Safari has only 1 player for html5-video. And Opera use safari-implementation of player :)

like image 59
SkyFox Avatar answered Nov 14 '22 23:11

SkyFox