How to display video on html page in Firefox

I looked through this question, but I had no answer. However, I give it a try.

I want to embed a video file in an html page. The code works fine on IE, but doesn't work on firefox.

The code:

<object id="WMPlay" width="640" height="480" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,70" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <param name="URL" value="XYZ.wma" /> <param name="AutoStart" value="false" /> <embed name="WMplay" width="640" height="480" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="XYZ.wma" allowchangedisplaysize="True" showcontrols="1" autostart="false" showdisplay="1" showstatusbar="1"> </embed> </object> 

Please note that I am not allowed to display the video using any third-party tool (e.g. flash).

Can someone tell me what I am missing? Or a better solution .. something that is browser independent ... :)

+4
source share
3 answers

Looks like firefox needs a plugin, check out this test page:

http://plugindoc.mozdev.org/testpages/wmp11.html

+1
source

This is probably a problem with the .wmv extension, which is Microsoft's proprietary format. You should convert your video to a more โ€œwebsite-friendlyโ€ format and use this code to ensure compatibility with multiple browsers / html: http://camendesign.com/code/video_for_everybody

+1
source

Fire fox only displays .ogg and WebM ...

www.w3schools.com/tags/tag_video.asp

+1
source

Source: https://habr.com/ru/post/1307652/


All Articles