Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play wmv files in html5 video player

Tags:

Is there any way to play .wmv files using html5 video player?

like image 549
Dr. Rajesh Rolen Avatar asked Dec 16 '10 10:12

Dr. Rajesh Rolen


People also ask

How can I play a WMV video in HTML?

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).

Does HTML support WMV files?

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.

What video player can play WMV?

How to open a WMV file. You can open a WMV file with various media players. In Windows, you can play a WMV video with the bundled Windows Media Player and Microsoft Movies & TV players. Other applications that open WMV files in Windows, macOS, and Linux include VideoLAN VLC media player, Eltima Elmedia Player, and Kodi ...

What is an HTML5 video player?

An HTML5 Video Player is a JavaScript library that builds a custom set of controls over top of the HTML5 video element to provide a consistent look between HTML5 browsers.


Video Answer


2 Answers

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.

like image 131
Jan Hančič Avatar answered Sep 23 '22 12:09

Jan Hančič


That's not true. Wmv files CAN play in IE with the windows media player object.

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)

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.

like image 21
Chris Avatar answered Sep 23 '22 12:09

Chris