How to display video on html page in firefox

Posted by Manish on Stack Overflow See other posts from Stack Overflow or by Manish
Published on 2010-04-22T10:07:11Z Indexed on 2010/04/22 10:23 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

I did looked at this question, but the asker didn't got any reply. Still, I'm giving it a try.

I want to embed a video file on a 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>

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

© Stack Overflow or respective owner

Related posts about html

Related posts about object-tag