Why do Apple devices play html5 video in their own player?

I tried different html players and used the html5 tag. However, Apple devices (ipod touch 4, iphone 4, ipad) display html5 video in their own player .

My main goal is to show overlay ads on video. I decided to hide / show the div using absolute positioning and z-index. It worked for browsers on my PC, but was unable to handle apple devices.

To show ads on Apple devices, firstly, I need to use my own html5 player, and not the default apple player.

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

Thanks,

Editted

There is a webkit-playinginline attribute. But that doesn't work either. I think it only works in application programming using UIWebView.

<video id="video" width="480" height="320" webkit-playsinline> 
+6
source share
1 answer

Sorry, but you cannot use another player. Any html5-enabled browser can have several different players. Each player is built into the browser. This is part of the browser. When you use your apple device for viewing, you can only use Safari (and Opera). Safari has only 1 player for html5 video. And Opera uses the safari implementation of the player :)

+2
source

Source: https://habr.com/ru/post/904137/


All Articles