为什么苹果设备在自己的播放器中播放html5视频? [英] why does apple devices play html5 videos in its own player?

查看:157
本文介绍了为什么苹果设备在自己的播放器中播放html5视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了不同的html播放器并使用了html5视频标签。然而苹果设备(ipod touch 4,iphone 4,ipad)在其自己的播放器中显示html5视频。

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.

我的主要目标是显示叠加层广告视频。我决定在绝对定位和z-index的帮助下隐藏/显示div。它适用于我的PC中的浏览器,但无法在苹果设备中管理。

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.

为了在苹果设备上显示广告,首先我需要使用自己的html5播放器,而不是苹果的默认视频播放器。

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.

谢谢,

编辑

有一个属性webkit-playsinline。但这也不起作用。我认为它只适用于使用UIWebView的应用程序编程。

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>


推荐答案

抱歉,您无法使用其他播放器。任何支持html5的浏览器都可以为您提供不同的玩家。每个玩家都内置到浏览器中。它是浏览器的一部分。
当您使用Apple设备进行浏览时,您只能使用Safari(和Opera)。 Safari只有1个html5-video播放器。 Opera使用Safari的safari实现:)

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 :)

这篇关于为什么苹果设备在自己的播放器中播放html5视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆