在所有Chrome,IE和Firefox中嵌入wmv [英] Embed wmv in all Chrome, IE and Firefox
问题描述
我的代码来自:
嵌入Windows Media Player对于所有浏览器
< object id =mediaplayerclassid =clsid:22d6f312-b0f6-11d0- 94ab-0080c74c7e95codebase =http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701standby =loading microsoft windows media player components ... type =application / x-oleobjectwidth =320height =310>
< param name =filenamevalue =./ test.wmv>
< param name =animationatstartvalue =true>
< param name =transparentatstartvalue =true>
< param name =autostartvalue =true>
< param name =showcontrolsvalue =true>
< param name =ShowStatusBarvalue =true>
< param name =windowlessvideovalue =true>
< embed src =./ test.wmvautostart =trueshowcontrols =trueshowstatusbar =1bgcolor =whitewidth =320height =310>
您需要在客户端下载WMV文件的插件。这意味着,对于使用Chrome浏览器访问网站的任何人,都需要安装Chrome插件本地。
HTML5视频/ Flash视频可能是一种更好的方式来实现这一点,并使其对用户无缝。 下面是HTML 5视频的示例
The code below works in IE, Firefox but not Chrome. What change is necessary to make it work in Chrome. Chrome says "No plug-in available to display this content". I got the code from: Embedding Windows Media Player for all browsers
<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 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" width="320" height="310">
<param name="filename" value="./test.wmv">
<param name="animationatstart" value="true">
<param name="transparentatstart" value="true">
<param name="autostart" value="true">
<param name="showcontrols" value="true">
<param name="ShowStatusBar" value="true">
<param name="windowlessvideo" value="true">
<embed src="./test.wmv" autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white" width="320" height="310">
You will need to download the plugin for WMV files on the client side. That means that for anyone who visits the site with Chrome will need to have already installed the Chrome plugin locally.
HTML5 Video/Flash video may be a better way to accomplish this and make it seamless for the user. Here's an example for HTML 5 video
这篇关于在所有Chrome,IE和Firefox中嵌入wmv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!