简体   繁体   English

.MOV无法在嵌入式Win Media Player中播放

[英].MOV not playing in Embedded Win Media Player

I have a video embedded on a webpage. 我在网页上嵌入了一个视频。 I have to use windows media player due to client requirements and another layer of complexity is that this is all offline content. 由于客户端要求,我不得不使用Windows Media Player,而另一层复杂性是,这都是脱机内容。 The purpose of this system is to give users access to documentation while offline. 该系统的目的是使用户可以在脱机时访问文档。 I'm sure there's much better ways of delivering this content locally but again per client requirements it is a necessary evil. 我敢肯定,有更好的方法可以在本地交付此内容,但是根据客户的要求,这也是必不可少的。

ISSUE: The video on the splash page will not play in windows media player in the browser. 问题:启动页面上的视频无法在浏览器的Windows Media Player中播放。 If i open the full desktop media player the video plays just fine. 如果我打开完整的桌面媒体播放器,则视频可以正常播放。

ERROR: 错误:

 Windows Media Player error C00D11B1
 Windows Media Player can't play the file.

CODE: 码:

<object classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width="650" height="366"
      codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701' 
      standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' >
<param name='filename' value="../Video/Intro.mov">
<param name='animationatStart' value='1'>
<param name='transparentatStart' value='1'>
<param name='autoStart' value='0'>
<param name='ShowControls' value='1'>
<param name='ShowDisplay' value='0'>
<param name='ShowStatusBar' value='0'>
<param name='loop' value='0'>

<EMBED type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0' 
       bgcolor='darkblue' showcontrols='1' showtracker='1' 
       showdisplay='0' showstatusbar='0' videoborder3d='0' width="650" height="366"
       src="../Video/Intro.mov" autostart='0' designtimesp='5311' loop='0'>
</EMBED> 

NOTE: The assumption with this tool as that the user has no internet access so, consequently the codebase attribute is worthless but I left it there just to see the effect. 注意:使用此工具的假设是用户无法访问互联网,因此, codebase属性毫无价值,但我留在此处只是为了查看效果。

I get the same error (C00D11B1) with an a player app based on MediaElement -- due to Codec problems (either missing codec or badly written codec). 由于基于编解码器的问题(缺少编解码器或编写错误的编解码器),基于MediaElement的播放器应用出现相同的错误(C00D11B1)。 As I understand it, MediaElement and MediaPlayer classes use the same WMP libraries. 据我了解,MediaElement和MediaPlayer类使用相同的WMP库。 Did you try converting the MOV file to WMV? 您是否尝试将MOV文件转换为WMV? MP4 is a crap shoot since it is a container for many different types of codec data. MP4是废话,因为它是许多不同类型的编解码器数据的容器。 When you converted to MP4, the converter may have simply copied the MOV encoded video data into the MP4 file. 当您转换为MP4时,转换器可能只是将MOV编码的视频数据复制到了MP4文件中。 BTW, some MP4s will play fine on the Primary display but not on the Secondary display -- I think the codecs have trouble doing the math since the Seconday display origin (upper left corner) does not start at (x,y = 0,0). 顺便说一句,某些MP4可以在主显示器上正常播放,但不能在辅助显示器上播放-我认为编解码器在进行数学运算时会遇到麻烦,因为Seconday显示器的原点(左上角)不是从(x,y = 0,0 )。

Installing a codec pack (like K-Lite) may help. 安装编解码器包(例如K-Lite)可能会有所帮助。 But if you are distributing your app to a user community, the best solution would be to use WMV files since Windows machines should support that format without adding new codecs. 但是,如果将应用程序分发给用户社区,最好的解决方案是使用WMV文件,因为Windows计算机应支持该格式而不添加新的编解码器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM