Html 如何在 html5 视频播放器中播放 wmv 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4459891/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to play wmv files in html5 video player
提问by Dr. Rajesh Rolen
Is there any way to play .wmv files using html5 video player?
有没有办法使用 html5 视频播放器播放 .wmv 文件?
回答by Jan Han?i?
There is no way. No browser (currently, if ever) supports playing wmv files. You will have to convert it into a format that browsers know how to play.
不可能。没有浏览器(目前,如果有的话)支持播放 wmv 文件。您必须将其转换为浏览器知道如何播放的格式。
回答by Chris
That's not true. Wmv files CAN play in IE with the windows media player object.
这不是真的。Wmv 文件可以使用 windows 媒体播放器对象在 IE 中播放。
Example:
例子:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="480"
height="360" codebase="http://www.microsoft.com/Windows/MediaPlayer/">
<param name="Filename" value="http://walkernewsdownload.googlepages.com/HP-iPaq-614.wmv">
<param name="AutoStart" value="true">
<param name="ShowControls" value="true">
<param name="BufferingTime" value="2">
<param name="ShowStatusBar" value="true">
<param name="AutoSize" value="true">
<param name="InvokeURLs" value="false">
<embed src="http://walkernewsdownload.googlepages.com/HP-iPaq-614.wmv"
type="application/x-mplayer2" autostart="1" enabled="1" showstatusbar="1"
showdisplay="1" showcontrols="1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" width="480" height="360"></embed>
</object>
You might need to install the Windows Media Player plug-in for your browser (if it is still available for your browser)
您可能需要为您的浏览器安装 Windows Media Player 插件(如果您的浏览器仍然可用)
Credit: See http://www.walkernews.net/2008/08/17/windows-media-player-how-to-embed-wmv-file-in-html-code/for a more thorough explanation.
信用:参见http://www.walkernews.net/2008/08/17/windows-media-player-how-to-embed-wmv-file-in-html-code/以获得更详尽的解释。
回答by Tjcool
Mediaelement.jsplayer documentation says, support to wmvand mov, but so far i have not seen any positive or success comments for these formats.Formats like wmv and mov are proprietary, so to play video user need to explicitly install browser based plugins. Latest version of Firefox doesn't support wmv directly, there is a work around.To support movformat,user need to have quicktime player install in the system.Go for players that supports Flash fallback for non HTML5 browsers.
Mediaelement.js播放器文档说,支持wmv和mov,但到目前为止我还没有看到对这些格式的任何正面或成功评论。像 wmv 和 mov 这样的格式是专有的,所以要播放视频用户需要明确安装基于浏览器的插件。最新版本的 Firefox 不直接支持 wmv,有一个变通方法。要支持mov格式,用户需要在系统中安装 quicktime 播放器。选择支持非 HTML5 浏览器的 Flash 回退的播放器。
回答by Husky
AFAIK, the only way to play WMV files in a browser without resorting to embedding WMP is using Silverlight.
AFAIK,在浏览器中播放 WMV 文件而不诉诸嵌入 WMP 的唯一方法是使用 Silverlight。
回答by Phillip
Heh, you would think IE would support it as WMV was a Microsoft format and IE is a Microsoft application. Interesting how they don't seem to mix.
呵呵,你会认为 IE 会支持它,因为 WMV 是一种 Microsoft 格式,而 IE 是一种 Microsoft 应用程序。有趣的是它们似乎没有混合。
Regardless, I hope that WMV will be supported in the future. Technically speaking, all current video formats except for OGG are proprietary. OGG is the only open platform codec.
无论如何,我希望将来能支持 WMV。从技术上讲,除 OGG 之外的所有当前视频格式都是专有的。OGG 是唯一的开放平台编解码器。
回答by Tony Montero
Sorry, but actually isn't supported in google chrome, safari, Opera and firefox...
抱歉,实际上在 google chrome、safari、Opera 和 firefox 中不支持...
You can use any programs to pass WMV to MP4 files, supported :)
您可以使用任何程序将 WMV 传递到 MP4 文件,支持 :)
I hope this reply has helped you a lot!
我希望这个回复对你有很大帮助!