html5视频在站点中无法播放,使用html5视频标签时在safari中不播放视频

可能是MP4如何编码的问题。我知道这个问题有点老了,但我也有同样的问题,所以万一你或者像我一样最先发现这个问题的人能帮上忙:

看起来QuickTime(这是一个为Safari播放MP4s的插件)只在文件用特定的配置文件编码时才起作用。这在Apple's FAQ中的问题2中指定。Although the protocol specification does not limit the video and audio formats, the current Apple implementation supports the following formats:

Video:

H.264 Baseline Level 3.0, Baseline Level 3.1, Main Level 3.1, and High Profile Level 4.1.

Audio:

HE-AAC or AAC-LC up to 48 kHz, stereo audio

MP3 (MPEG-1 Audio Layer 3) 8 kHz to 48 kHz, stereo audio

AC-3 (for Apple TV, in pass-through mode only)

您需要使用其中一个视频配置文件进行编码,以使其与QuickTime一起工作,从而与Safari一起工作。

如果您同时瞄准iOS设备,this table可能也很有帮助,以便了解您与哪些设备兼容:Baseline 3.0: All devices

Baseline 3.1: iPhone 3G and later, and iPod touch 2nd generation and later.

Main profile 3.1: iPad (all versions), Apple TV 2 and later, and iPhone 4 and later.

Main Profile 4.0: Apple TV 3 and later, iPad 2 and later, and iPhone 4S and later

High Profile 4.0: Apple TV 3 and later, iPad 2 and later, and iPhone 4S and later.

High Profile 4.1: iPad 2 and later and iPhone 4S and later.

知道您可以在QuickTime中打开一个文件(不必通过Safari加载)以检查文件是否工作也是很有用的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值