I want to Play wmv
video in browser, and place header and footer in the page. I am unable to play mp4
video, but i want to play wmv
. I google it but unable to find anything. Kindly guide me ho to play wmv
video from HTML page.
我想在浏览器中播放wmv视频,并在页面中放置页眉和页脚。我不能播放mp4视频,但是我想玩wmv。我谷歌,但找不到任何东西。请指导我从HTML页面播放wmv视频。
2 个解决方案
#1
11
You cannot play WMV files in HTML5 video. This has been answered here.
你不能在HTML5视频中播放WMV文件。这里有答案。
If you want to play video cross browser with HTML5 video you have to transcode your WMV file (currently to MP4 and WebM). Have a look here for a take on HTML5 video.
如果你想用HTML5视频播放视频跨浏览器,你必须对你的WMV文件(目前是MP4和WebM)进行代码转换。来看看HTML5视频吧。
To embed WMV videos in a web page you have to use an object/embed tag that calls the windows media player plugin (if it is installed - ie it will not work in platforms where the plugin is not available like iOS). Have a look here for a working example.
要将WMV视频嵌入到网页中,你必须使用一个对象/嵌入标签来调用windows媒体播放器插件(如果安装了这个插件,它就不能在iOS这样的平台上使用)。请看这里的一个工作示例。
#2
-4
For MP4
为MP4
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>
For WMV
对WMV
<video width="320" height="240" controls>
<source src="movie.wmv" type="video/wmv">
</video>
Replace the movie.xxx part with the name or link/name of your movie You can place this anywhere on your page
取代电影。你可以把你的电影的名字或链接/名字放在你的页面的任何地方
#1
11
You cannot play WMV files in HTML5 video. This has been answered here.
你不能在HTML5视频中播放WMV文件。这里有答案。
If you want to play video cross browser with HTML5 video you have to transcode your WMV file (currently to MP4 and WebM). Have a look here for a take on HTML5 video.
如果你想用HTML5视频播放视频跨浏览器,你必须对你的WMV文件(目前是MP4和WebM)进行代码转换。来看看HTML5视频吧。
To embed WMV videos in a web page you have to use an object/embed tag that calls the windows media player plugin (if it is installed - ie it will not work in platforms where the plugin is not available like iOS). Have a look here for a working example.
要将WMV视频嵌入到网页中,你必须使用一个对象/嵌入标签来调用windows媒体播放器插件(如果安装了这个插件,它就不能在iOS这样的平台上使用)。请看这里的一个工作示例。
#2
-4
For MP4
为MP4
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>
For WMV
对WMV
<video width="320" height="240" controls>
<source src="movie.wmv" type="video/wmv">
</video>
Replace the movie.xxx part with the name or link/name of your movie You can place this anywhere on your page
取代电影。你可以把你的电影的名字或链接/名字放在你的页面的任何地方