视频没有在Firefox中播放 [英] video not playing in firefox
本文介绍了视频没有在Firefox中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从下面的html代码播放视频时
when i play video from html code below
<video width="320" height="240" controls>
<source src="video.php" type="video/mp4">
</video>
它适用于Chrome但在firefox中我收到错误
没有支持格式的视频和找到的mime类型
但是当我使用像 http://localhost/test/a.mp4 [ ^ ]
它在firefox中运行正常然后为什么不从html代码?
it works in chrome but in firefox i get error
no video with supported format and mime type found
but when i play vidoe with complete url like http://localhost/test/a.mp4[^]
it works fine in firefox then why not from html code ??
推荐答案
你没有正确格式化你的视频源...
You aren't formatting your video source correctly...
<video width="320" height="240" controls="">
<source src="/test/a.mp4" type="video/mp4">
</source></video>
或类似的东西。 src应该指向视频文件。
Or something like that. The src should point to the video file.
这篇关于视频没有在Firefox中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文