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.
Asked
Active
Viewed 5.4k times
5

peterh
- 11,875
- 18
- 85
- 108

user3480644
- 577
- 4
- 8
- 23
-
You cannot play WMV video file in HTML5 video. Have a look at my answer. BTW you are able to play MP4 file right? I think there is a typo in your question. – Arnaud Leyder Apr 24 '14 at 12:13
-
Possible duplicate of [How to play wmv files in html5 video player](http://stackoverflow.com/questions/4459891/how-to-play-wmv-files-in-html5-video-player) – TylerH Jan 13 '17 at 16:40
2 Answers
14
You cannot play WMV files in HTML5 video. This has been answered here.
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.
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.

Community
- 1
- 1

Arnaud Leyder
- 6,674
- 5
- 31
- 43
-3
For MP4
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>
For 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

blackhawk338
- 386
- 2
- 3
- 15
-
This is wrong for HTML5 video: have a look [here](http://stackoverflow.com/questions/4459891/how-to-play-wmv-files-in-html5-video-player) – Arnaud Leyder Apr 24 '14 at 12:04