Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video mediaelementjs-如何获取要播放的wmv文件_Video_Html5 Video_Wmv - Fatal编程技术网

Video mediaelementjs-如何获取要播放的wmv文件

Video mediaelementjs-如何获取要播放的wmv文件,video,html5-video,wmv,Video,Html5 Video,Wmv,我试过了 <video width="640" height="360" id="player1" > <source type="video/x-ms-wmv" src="video/640p.wmv" /> </video> <script> $('#player1').mediaelementplayer({ plugins: ['flash','silverlight

我试过了

    <video width="640" height="360" id="player1" >
        <source type="video/x-ms-wmv" src="video/640p.wmv" />
    </video>

    <script>
    $('#player1').mediaelementplayer({
            plugins: ['flash','silverlight'],
            pluginPath: 'video/build/',
            flashName: 'flashmediaelement.swf',
            silverlightName: 'silverlightmediaelement.xap'
        });
    </script>

$(“#player1”).mediaelementplayer({
插件:['flash','silverlight'],
插件路径:“video/build/”,
flashName:'flashmediaelement.swf',
silverlightName:'silverlightmediaelement.xap'
});
但是当这个呈现出来时,我得到了一个下载文件链接。 如何让silverlight控件启动并播放文件?

我找到了答案 事实证明,当前版本的mediaelementjs假设wmv文件的mime类型为“video/wmv”。未将“video/x-ms/wmv”mime类型识别为wmv文件

我找到了答案 事实证明,当前版本的mediaelementjs假设wmv文件的mime类型为“video/wmv”,而“video/x-ms/wmv”mime类型不能识别为wmv文件