Embed wmv in all Chrome, IE and Firefox

徘徊边缘 提交于 2019-12-13 01:33:48

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/23836514/embed-wmv-in-all-chrome-ie-and-firefox

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