HTML5音频播放器有206个但不能播放

时间:2018-10-31 03:10:56

标签: html html5 html5-video html5-audio mp4

文件路径正确,并且“网络”选项卡返回的206 Partial Content

<audio id="audio" controls="controls">
        <source id="audioSource" src="../tempdata/ClFn1JmOSBJpFfxIOJOjag6zQ.mp4" type="audio/mp4"></source>
        Your browser does not support the audio format.
    </audio>

enter image description here

enter image description here

即使内容类型确实提到了video/mp4,该文件还是audio/mp4,并且在本地播放完美,因此文件也没有损坏。

1 个答案:

答案 0 :(得分:0)

问题是音频文件使用AMR_NB编码,HTML5音频播放器不支持。解决方法是切换到HTML5 Player支持的ACC

相关问题