本地 - 在Mozila Firebox中找不到支持格式和MIME类型的视频

时间:2016-02-29 10:37:13

标签: html5 video html5-video mozilla mime

我在本地网页上有一百个视频,所有都是在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中播放?enter image description here

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>

1 个答案:

答案 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>