HB小八
HB小八
  • 发布:2015-04-30 14:52
  • 更新:2015-12-23 16:57
  • 阅读:4133

IOS远程视频无法播放

分类:HTML5+

IOS 用video标签播放视频,如果视频放在本地 (src="../video.mp4这种写法") 可以播放,但是把视频在放服务器上 比如tomcat的某个项目中(192.168.0.123:8080/aa/data/video.mp4),就无法播放!跪谢各位大神解答(视频格式是mp4的,安卓版代码一样 都正常使用)

2015-04-30 14:52 负责人:无 分享
已邀请:
lafer

lafer

我的也是,播放不了

DCloud_IOS_XTY

DCloud_IOS_XTY

加上onerror看看是否是视频格式在iOS上不支持

Supported Media
Safari on iOS (including iPad) currently supports uncompressed WAV and AIF audio, MP3 audio, and AAC-LC or HE-AAC audio. HE-AAC is the preferred format.
Safari on iOS (including iPad) currently supports MPEG-4 video (Baseline profile) and QuickTime movies encoded with H.264 video (Baseline profile) and one of the supported audio types.
iPad and iPhone 3G and later support H.264 Baseline profile 3.1. Earlier versions of iPhone support H.264 Baseline profile 3.0.

  • 哈儿熊

    没有解决吗?本地可以放,在线就放不了,不是格式不支持的问题吧

    2017-01-11 11:00

woon

woon

下载到本地,以路径: file:///........的形式,就可以播放

该问题目前已经被锁定, 无法添加新回复