我在本地网页上有一百个视频,所有都是在bootstrap模态内容中添加的视频,当点击静态图像时,模态将打开和视频播放,这里很少有视频在Mozilla Firebox中播放,剩下的视频没有在Mozilla中播放Firebox而非Google Chrome。 mozila显示错误"找不到支持格式和MIME类型的视频",
那些整个视频详情,
type - video
codec - H264 - MPEG-4 AVC video, AAC audio
Resolution - 1280 x 720
那么找到解决方案为什么很少有视频无法在Mozilla Firebox中播放?
HTML
<div class="modal-body">
<video controls>
<source id="Video1" src="video/video1.Mp4" type="video/mp4">
</video>
</div>
.
.
<div class="modal-body">
<video controls>
<source id="Video2" src="video/video2.Mp4" type="video/mp4">
</video>
</div>
.
.
.
<div class="modal-body">
<video controls>
<source id="Video100" src="video/video100.Mp4" type="video/mp4">
</video>
</div>
答案 0 :(得分:0)
Actually problem was used Mp4 format. if used Mp4 format at Mozilla Firebox some limited videos only played without error in local machine, some videos link got the error Message
So Change the video1.webm format instead of video1.Mp4 format. its working fine, and change the type also type="video/webm".
Html
<div class="modal-body">
<video controls>
<source id="Video1" src="video/video1.webm" type="video/webm">
</video>
</div>
.
.
<div class="modal-body">
<video controls>
<source id="Video2" src="video/video2.webm" type="video/webm">
</video>
</div>
.
.
.
<div class="modal-body">
<video controls>
<source id="Video100" src="video/video100.webm" type="video/webm">
</video>
</div>