mediaelementjs - How to get a wmv file to play

丶灬走出姿态 提交于 2019-12-11 08:39:34

问题


I have tried

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

but when this renders out I get a Download File link. How do I get the silverlight control to fire and play the file?


回答1:


I found the answer it turns out the current version of mediaelementjs assumes wmv files have a mime type of 'video/wmv' the 'video/x-ms/wmv' mime type is not recognized as a wmv file



来源:https://stackoverflow.com/questions/13257202/mediaelementjs-how-to-get-a-wmv-file-to-play

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!