Jump to content
xisto Community
Sign in to follow this  
Inspiron

How To Make Youtube Embedded Videos Viewable On All Browsers including on Opera browser which is actually not viewable with embedde

Recommended Posts

Firstly, I've noticed that embedded YouTube videos on personal websites, or any sites not on YouTube's domain, cannot be viewed on Opera browser. In other words, the codes given by YouTube to embed the videos on your site does not have support for Opera browser. However I've found out a trick to do so. Here's how..

This is the original code given by YouTube to embed to your own website. Copy this codes and paste into the source of your site.

<object width="425" height="350"> <param name="movie" value="http://forums.xisto.com/no_longer_exists/; <embed src="http://forums.xisto.com/no_longer_exists/&%2334; type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Now look at the value in the param tag and the source in the embed tag. Edit the "/v/" into "/p.swf?video_id=".

Hence it becomes the following..
<object width="425" height="350"> <param name="movie" value="http://forums.xisto.com/no_longer_exists/; <embed src="http://forums.xisto.com/no_longer_exists/&%2334; type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Now with this code, you will be able to play YouTube videos on Opera browser as well. Moreover, it's able to play videos on all types of browsers. A disadvantage is that you cannot see the first frame of the video like in the original code. Anyway, who want's to see just the first frame? Compatibility is the key to be a good web programmer.

Share this post


Link to post
Share on other sites

Yes many browsers cannot support the FLV format directly embedded into them, because of this youtube has a flash player (swf format) that opens the flv's and plays them with the gui (play, pause, timeline etc). Clever work around. Nice work.

Share this post


Link to post
Share on other sites
working?How To Make Youtube Embedded Videos Viewable On All Browsers

Hi.

This isn't completely working. The first frame of the movie now shows up in Netscape. It wasn't before. When I click play, the video gets stuck in downloading and never plays. It gets stuck in both netscape and other browsers that were working without the code edit.

-reply by alexandru Sacui

Share this post


Link to post
Share on other sites
problem with "/p.swf?video_id=".How To Make Youtube Embedded Videos Viewable On All Browsers

Hi,

The 1st time I cahnged the "/v/" to "/p.Swf?video_id=". It worked beutifully but, I tried it again & I can't get it to work. Do you think theres a problem with my server or, am I doing it wrong?

May I send you a video code & you change it for me? I would really appreciate it.

Thanks in advance

-question by NIcole

Share this post


Link to post
Share on other sites

I had a similar experience with IE6

 

First I reset all internet to default

 

Find where flash player is on hard disk ?c-->windows-->System32 -->macromedia...> flash -->flashutil?  run update and install.

 

Internet Explorer will now play video again - problem fixed!

 

Laney

Share this post


Link to post
Share on other sites

THANKS - this worked better than I had expected. I had 6 Youtubes on a webpage. I changed the code to ( p.swf?video_id= ) on the 1st one and the fix carried through to all the following vids on the page.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.