Question

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?

Was it helpful?

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

OTHER TIPS

If you want to embed a video, do it like this..

First, click on the desired video in youtube and click on share

enter image description here

Next, you click on Embed button

enter image description here

Now you just copy the code that youtube has provided and paste it in your code..This will make the video appear in your web page..

Try it..

<h1>Video examples:</h1>
<iframe src="https://www.youtube.com/embed/j6gNKR0TMMo"></iframe>

<img src="https://cdn.sstatic.net/Sites/stackoverflow/Img/error-lolcat-problemz.jpg">
<embed src="https://www.youtube.com/embed/j6gNKR0TMMo" width="1000" height="600">
<h1>Image examples:</h1>
<h1>Link examples:</h1>
<a href="https://area51.stackexchange.com">Link</a>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top