【发布时间】:2014-06-14 12:57:53
【问题描述】:
我正在尝试流式传输此网址:http://stream331.overseebrasil.com.br/live_previd_155/definst/live_previd_155/playlist.m3u8
<audio id="streaming" class="video-js vjs-default-skin" controls>
<source src="http://stream331.overseebrasil.com.br/live_previd_155/_definst_/live_previd_155/playlist.m3u8" type='audio/mp4; codecs=mp4a.40.2' />
</audio>
Safari / Mac 和 Safari / iOS 工作正常,但代码无法在 Chrome 和 Firefox 中运行。
我尝试从 type 属性中删除编解码器的信息,但没有任何反应。 火狐说:
Specified "type" attribute of "audio/mp4; codecs=mp4a.40.2" is not supported. Load of media resource http://stream331.overseebrasil.com.br/live_previd_155/_definst_/live_previd_155/playlist.m3u8 failed.
All candidate resources failed to load. Media load paused.
我还尝试根据 mime 页面更改类型属性 (http://www.videojs.com/projects/mimes.html) 对这个问题有任何想法吗?
【问题讨论】: