htmlvideoembedwmv

Embedding video using embed tag not working in modern browsers


I have a very simple html page with following content:

<embed width="260" height="282" src="rtuner.wmv" showstatusbar="true" showgotobar="true" showdisplay="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" name="rTuner" />

Note that 'src' attribute of embed element takes a relative url. This very simple html element plays the video in older browsers like Firefox 10, IE8 etc., but it doesn't play in FF 17 and Chrome 27. If 'src' attribute is assigned a absolute URL then the video works again.

Any ideas why so?

EDIT: Observed Firebug console shows this warning - 'Error: Permission denied to access object'. Does this message give any hint?


Solution

  • It's an WMP plugin issue. If browsers have old wmp plugin npdsplay.dll, a new wmp plugin np-mswmp.dll has to be installed. http://kb.mozillazine.org/Windows_Media_Player