mediaelementjs - 如何获取wmv文件 [英] mediaelementjs - How to get a wmv file to play

查看:311
本文介绍了mediaelementjs - 如何获取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'],
            pluginPath: 'video/build/',
            flashName: 'flashmediaelement.swf',
            silverlightName: 'silverlightmediaelement.xap'
        });
    </script>

但是当这个呈现出来时,我会得到一个下载文件链接。
如何让Silverlight控件触发并播放文件?

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

推荐答案

我找到答案
结果是当前版本的mediaelementjs假设wmv文件的mime类型为'video / wmv''video / x-ms / wmv'mime类型未被识别为wmv文件

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

这篇关于mediaelementjs - 如何获取wmv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆