0

I have a H.264 video I want to show it on Chrome using HTML5 but using this video tag I only see a control bar.

<video width="320" height="240" controls="controls">
    <source src="myvideo.264" type="video/264" />
    Your browser does not support the video tag.
</video>

If someone has experience here, please help me to find a solution.

4

1 回答 1

0

尝试将文件扩展名更改为“mp4”,将类型属性更改为“video/mp4”。

对于额外的功劳,您可能希望为 Firefox 提供 Flash 后备,它还不能播放 H.264/MP4 视频。您可以使用jPlayerVideo.js 之类的东西来为您处理这个问题。

于 2013-06-18T14:03:27.513 回答