banner



How To Stop Embedded Youtube Videos From Playing Simultaneously

Youtube recently added a new feature to the video player used to embed Youtube videos on other website.

The new default player, once the video completes playing, will display a list of related videos.

While this feature could be useful for some users it is probably not wanted on Youtube video aggregation websites.

Fortunately it'southward possible to disable related videos.
Permit's see how.

The default player

Let'south have a cool video (I'g a windsurfing fond).

The default embed lawmaking Youtube suggest us is

<object width="425" pinnacle="350"> <param proper noun="movie" value="http://world wide web.youtube.com/five/Yc_J_kXaFSw"></param> <param name="wmode" value="transparent"></param> <embed src="https://world wide web.youtube.com/v/Yc_J_kXaFSw" type="application/x-shockwave-wink" wmode="transparent" width="425" height="350"></embed> </object>

Equally y'all can come across, at the end of the video the thespian will display something similar this:

Disabling related videos

The trick is to attach to the actor URL (http://world wide web.youtube.com/v/Yc_J_kXaFSw) therel=0 parameter.

The player URL will becamehttp://www.youtube.com/v/Yc_J_kXaFSw&rel;=0

Just update the embed code with the new URL:

<object width="425" meridian="350"> <param proper name="picture show" value="http://world wide web.youtube.com/v/Yc_J_kXaFSw&rel=0"></param> <param name="wmode" value="transparent"></param> <embed src="https://www.youtube.com/v/Yc_J_kXaFSw&rel=0" type="application/ten-shockwave-wink" wmode="transparent" width="425" tiptop="350"></embed> </object>

Let's utilize valid XHTML code

Unfortunately the embed code provided past Youtube isn't valid XHTML code and does not pass the W3C's XHTML validation.

This is really bad as creating valid XHTML spider web pages is valuable and professional person. In some countries it is even required past police for public assistants websites.

So we tin can use something like

<!--[if !IE]> <--> <object blazon="application/ten-shockwave-wink" width="425" height="350" data="http://www.youtube.com/v/Yc_J_kXaFSw&rel=0"> <!--> <![endif]--> <!--[if IE]> <object type="application/x-shockwave-flash" width="425" acme="350" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"> <![endif]--> <param proper name="movie" value="http://www.youtube.com/v/Yc_J_kXaFSw&rel=0" /> <p>Your browser is non able to display this multimedia content.</p> </object>

The above code, which come from my Drupal video module, is valid XHTML code and works with the most used spider web browsers.

The to a higher place lawmaking generate:

Conclusions

You are at present able to control the behavior of Youtube player related video and post on your website Youtube videos following XHTML standards.

References

New! Related Videos Actualization on Embeds at Youtube Blog

  • Login to post comments
  • 408314 reads

Posted in:

  • drupal
  • flash
  • youtube

Thank you

Submitted by Mahesh (not verified) on Thu, 2014-03-20 12:42.

It worked

  • Login to mail service comments

DELETE RELATED VIDEOS

Submitted by Anonymous (not verified) on Sat, 2013-09-xiv 06:17.

the easiest way to delete unrelated videos (posted sept 2013) is
to 'Add' … something to the end of your 'real video'

I just add about i minute of SOLID BLACK.jpg

the view will get bored subsequently a few seconds and close the video!

  • Login to mail comments

Thanks!

Submitted by Caryn (non verified) on Tue, 2013-03-05 18:56.

Thanks for your easy and simple instructions. Got mine fixed in just a few minutes!

  • Login to post comments

Information technology should say ?rel=0 and non

Submitted by Chai (not verified) on Fri, 2013-02-15 xix:53.

It should say ?rel=0 and not &rel=0

  • Login to post comments

If it's embed code, then

Submitted by Anonymous (not verified) on Fri, 2014-09-12 17:31.

If it's embed code, then ?rel=0 will work fine. But each link of this type tin can only have i ? (new term), and if you add ?rel=0 to a regular share link, it will have two ? terms and will non work. The &rel=0 is correct for regular share links.

  • Login to post comments

Thank you!

Submitted by Tara (not verified) on Friday, 2012-06-xv 01:07.

I had read the &rel=0 on some other site just didn't know where to insert. On the video I was uploading, the script actually looked like:

value="http://www.youtube.com/v/2qsdPgFJdP0?version=3&feature=player_detailpage">

and I ended up deleteing "version=3&feature=player_detailpage" and and so putting in &rel=0 earlier it would work. The video seems to run fine.

THANKS MUCH!

  • Login to post comments

Thank you!

Submitted past Lauren Thomas (not verified) on Tue, 2012-01-24 12:32.

I sure exercise appreciate all you smart people taking the time to prepare these types of forums!

  • Login to mail comments

If you want to practice this

Submitted by Dave (not verified) on Sat, 2011-11-12 00:54.

If you want to practise this automatically, you tin use the Youtube embed tool hither:

http://www.davewooding.com/how-to-customize-and-embed-a-youtube-video/

Thanks.

Dave

  • Login to post comments

Yes… but not iv years ago

Submitted past fabio on Sat, 2011-11-12 01:27.

Aye… merely non four years ago 😉

  • Login to mail comments

peachy

Submitted past Anonymous (not verified) on Monday, 2011-08-22 18:57.

thank you a lot!!

  • Login to postal service comments

Works!

Submitted past Sneaky (not verified) on Tue, 2011-07-19 10:57.

Worked like a charm, cheers for the code(s). At present I got to change all my vids.

admin edit: removed spam looking link. Simply links to personal/non profit websites are tolerated.

  • Login to post comments

Yes it is also working well

Submitted past Alan Peterson (not verified) on Tue, 2014-09-16 06:41.

Yes it is also working well for me as i accept completed many online programs and document with it and configure them well.

  • Login to post comments

Or use Youtube's own role…

Submitted by Anonymous (not verified) on Friday, 2011-03-04 13:39.

Alternatively you can employ Youtube's options under the embed code and untick the ane that says 'Include related videos'. 🙂

  • Login to post comments

Not four years ago.

Submitted past fabio on Fri, 2011-03-04 xiv:17.

Not four years ago.

  • Login to post comments

Cheers for info Is in that location a

Submitted past Chris (non verified) on Thu, 2011-02-03 02:36.

Cheers for info

Is there a way once I've embeded a youtube in my wordpress blog..that when poeple click on the youtube video information technology keeps people on my blog when watching youtube video rather than taking them to the youtuve site to watch the video when they click the video twice?

Really appreciate your speedy reply on this

Talk soon
Chris 🙂

  • Login to mail comments

According to

Submitted by fabio on Thu, 2011-02-03 09:34.

According to http://www.warriorforum.com/main-net-marketing-give-and-take-forum/210… you tin utilize:

Put this: <param name="allowNetworking" value="internal"> before the <embed> tag  Put this: allowNetworking="internal" after size              

Let me know if that worked.

  • Login to post comments

It works!

Submitted by Bearding (not verified) on Wednesday, 2011-01-19 09:21.

Yes it WORKS!!! thanks man!

Admin edit:
 sorry, spam link removed. But link to personal or nonprofit websites are tolerated.

  • Login to postal service comments

nice tutorial of video posting

Submitted by Yeast Infection Home Remedy (not verified) on Mon, 2010-12-27 17:21.

hi, i likewise looking for the manner to stop related video at the finish of my site.
thank you so much for providing this crawly script.
happy coming new year

ADMIN EDIT: Sorry, link removed. Simply links to personal or not commercial websites are tolerated.

  • Login to postal service comments

Thank you very much, I

Submitted by MyForces (not verified) on Saturday, 2010-12-eighteen 01:47.

Cheers very much, I stumbled upon this completely by blow – I wasn't even looking for articles on how to remove related videos from YouTube player – but this is fantabulous information and i'll be definitely implementing this on my own websites. Thanks once more.

  • Login to post comments

Thanks very much !

Submitted by Esmoke.dk (not verified) on Thu, 2010-12-16 17:25.

Trying to get rid of those darn after videos with no luck, but your embeed code helped right away.

Thanks very much for your assist past posting this :o)

Admin edit: Removed link. I'g distressing only links to personal websites are tolerated.

  • Login to postal service comments

I've been wondering for a

Submitted by Julie Bergsetein (not verified) on Sat, 2010-xi-27 12:13.

I've been wondering for a while how to disable that "feature" – I always thought it was against the Youtube TOS or if not simply impossible to stop the related videos at the cease. I'm glad I can finish it for my website equally information technology looks far more professional to just end the video immediately and non pop upwardly with some more videos which may or may not be relevant to the video I want to display on my page.

Best Wishes, Julie Bergestein.

ADMIN EDIT: removed links to business website. Only links to personal websites or to related pages are tolerated.

  • Login to post comments

Thanks!

Submitted by Anonymous (non verified) on Friday, 2010-11-26 xx:36.

Thanks! The content on this page was very helpful.

  • Login to post comments

Give thanks Y'all VERY MUCH. I WAS

Submitted past Raj (not verified) on Wed, 2010-xi-17 23:20.

THANK Y'all VERY MUCH. I WAS SEARCHING FOR THIS SINCE LONG BACK. It helps me a lot

  • Login to postal service comments

Thanks very much.

Submitted past Anonymous (not verified) on Wed, 2010-11-17 05:08.

Cheers very much.

  • Login to post comments

cheers and so much

Submitted by andrew (not verified) on Wed, 2010-eleven-10 02:51.

thanks thanks thanks…. this site is very helpful…. proceed it upwards gurus!

  • Login to post comments

Show video without paying $lxx, squeamish!

Submitted past Barry Fifty Salter (not verified) on Fri, 2010-eleven-05 07:11.

Terminal web site I set upward video on nosotros purchased a codac for $lxx and information technology was complicated to set upwards… This took 5 minutes (faster if information technology had been a site I was working on) and worked… can't say thank you plenty!

  • Login to post comments

Thanks

Submitted by Jason Wynne (non verified) on Friday, 2010-10-29 xv:27.

Just wanted to add thx for this – it is people like y'all that share information and make developers lives much easier. on a related note, all joomla users notation that this works in joomla besides.

  • Login to postal service comments

"I am what I am considering of

Submitted by fabio on Friday, 2010-10-29 xviii:xix.

"I am what I am because of who we all are."

And I would add: If I amend and then share, we all improve.

  • Login to post comments

thanks so much for this likewise

Submitted past raheel (not verified) on Thu, 2010-09-xxx 00:04.

thanks so much for this besides i wanted to know about how i disable clicking on youtube, dailymotion and other service plyaer

Admin edit: removed spam looking link.

  • Login to post comments

thnks….

Submitted by Manisha Sherla (not verified) on Fri, 2010-07-xxx x:31.

thanku for this commodity….

  • Login to mail comments

Give thanks you very much for your

Submitted by Malid (not verified) on Thu, 2010-07-01 01:36.

Cheers very much for your post.

  • Login to mail service comments

keen

Submitted by Soko Banja Apartmani (not verified) on Wed, 2010-06-30 00:36.

this is great, thanks

  • Login to post comments

disabling related videos

Submitted by Tom (not verified) on Dominicus, 2010-06-06 01:41.

Excellent. Many cheers for that, extremely irritating YouTube feature disabled on my weblog.

  • Login to mail service comments

Banja Vrujci Video

Submitted by Banja Vrujci (not verified) on Sunday, 2010-05-23 18:44.

Give thanks you lot for this very useful tip, i dont like these "related videos" at all. Also i have some clips from youtube on my site http://www.banjavrujci.info/smestaj/video and i am going to put your lawmaking to disable related videos. Cheers once once again

  • Login to mail comments

Smashing blog – Awesome!

Submitted by Brent Lane (non verified) on Thu, 2010-04-29 00:09.

Hey cheers for making that quick and easy tutorial weblog. I really rely on things like this for my learning curve. I did just fabricated the changes to my video at http://www.brentlane.com it'due south correct no the front end page. Nosotros used green screen actually ($.50 poster board scotch taped together) and so did some pretty neat stuff in the video. Check it out if your interested.

https://youtube.com/sentry?v=PslWxTk4IlI%3Frel%3D0%26autoplay%3D0%26wmode%3Dopaque

Once again thank you for the web log mail. It was make clean, concise, and most importantly was the first one I found. I am going to link to this weblog post from mine on the site. Cheers.

  • Login to post comments

Tool that does this for you

Submitted by Anonymous (not verified) on Fri, 2010-x-22 02:25.

Here is a tool that does this for you:
http://norelatedvideos.weebly.com/

  • Login to post comments

apartmani

Submitted past Soko Banja (non verified) on Wed, 2010-04-21 09:forty.

Corking tips. Thanx. Very useful

  • Login to post comments

Give thanks you for the tips!

Submitted by Eaindra (not verified) on Wed, 2010-03-31 10:48.

Thank you for the tips!

  • Login to post comments

Remove embedded youtube video

Submitted by Anonymous (not verified) on Monday, 2010-03-08 04:54.

Tin can someone tell me how to remove my embedded youtube video from my wordpress front page.

  • Login to postal service comments

Cheers for the tip

Submitted by Nitin (non verified) on Saturday, 2010-02-20 11:12.

Thanks for the excellent tip.

  • Login to post comments

Disable Youtube click through

Submitted by Anonymous (non verified) on Mon, 2010-02-08 16:16.

is information technology possible to disable a CLICK through to the YOUTUBE site when an embedded video is playing.

i.e. prevent a user such as a child going direct to Youtube?

  • Login to mail comments

I'thousand looking for the

Submitted past Bearding (non verified) on Wed, 2010-03-31 21:22.

I'm looking for the aforementioned!
Anybidy knows how t exercise this?

  • Login to mail comments

I merely want to say….

Submitted by Chris Michael (not verified) on Sun, 2010-01-10 03:nineteen.

Thanks Homo!

Cheers 🙂

  • Login to post comments

Graviranje i secenje

Submitted by Graviranje (not verified) on Tue, 2010-01-05 07:31.

Excellent, merely anyway I wanted to discover somewhere a way to not appear different clips.

  • Login to post comments

&rel=0

Submitted by From brazil (not verified) on Mon, 2010-01-04 20:56.

Sweet tip!!!

tks

  • Login to post comments

Thanks for help – bully advice!

Submitted by visitorWeb (not verified) on Wed, 2009-12-16 twenty:03.

You saved me a lot of time. I started to affair about posting video on some other site instead Youtube – only thank you to you – it is all stock-still now.
Works great!

  • Login to post comments

You lot tube and W3C validation

Submitted past Greeny (not verified) on Fri, 2009-12-11 17:24.

I remember you joke.. tell me where why your lawmaking is not validating:


Delight try this link to meet tell me where I wrong:
http://www.validome.org/xml/validate/
Anyone has the Answer but which is that??
Thanks

  • Login to postal service comments

clever trick

Submitted past Bob Xin (non verified) on Friday, 2009-12-11 15:58.

Actually, I am doing some gray chapeau technique for youtube videos. I know they can exist banned any time. Simply a lots of thanks to you coz now I am sure that I won't become banned to disable those videos.

Till now I was using youtube videos in my own player.

  • Login to mail comments

grad

Submitted by Loznica (non verified) on Thu, 2009-12-x 12:27.

Thank yous very much, this is really to utilise due to competition….

  • Login to post comments

I'k nevertheless having problems

Submitted by Help (not verified) on Wed, 2009-xi-25 21:xviii.

Here is my embedded info where exercise I identify the rel=0?

Thanks so much for your aid

  • Login to post comments
  • 1
  • 2
  • next ›
  • last »

Stickers

FSF Associate Member
View Fabio Varesano's profile on LinkedIn
View Fabio Varesano's profile on LinkedIn
My Amazon.com Wish List
Hosted By Site5.com

Popular content

All time:

  • Installing Flash Player Plugin on Firefox without having Ambassador Access or Premissions
  • FreeIMU: an Open Hardware Framework for Orientation and Motion Sensing
  • Disable related videos on a embedded Youtube histrion
  • h264 videos on Wink: cool example
  • Serial RS232 connections in Python
  • My first 6 DOF IMU Sensors Fusion Implementation: ADXL345, ITG3200, Arduino and Processing
  • Serial communication with Arduino and Processing: simple examples and an Arduino based gamepad interfacing with Processing
  • Multiple forums for Organic Groups: my patch committed
  • An homebrew DIY breakout board for the ITG3200 gyroscope: tested with Arduino and Processing
  • Digital Input/Output on custom CC430 board

Contempo comments

  • prom read address 0
    46 weeks ii days ago
  • Sorry if this sounds stupid,
    46 weeks 3 days ago
  • Starting with MS5611
    46 weeks 6 days ago
  • problems in calibration magazine information
    47 weeks 4 days ago
  • Code to exam IMU (The cube form)
    51 weeks 2 days ago
  • error while compiling
    ane year 1 calendar week ago
  • Re: Hi I have read that in
    one twelvemonth 1 week ago
  • wonderful!
    1 twelvemonth ii weeks ago
  • You lot may want to test if the
    1 year 4 weeks ago
  • How-do-you-do, Doing this in the
    1 year 4 weeks ago

Advertising

Copyright © 2007-2013 Fabio Varesano – Some rights reserved.
Privacy Policy

How To Stop Embedded Youtube Videos From Playing Simultaneously,

Source: https://www.varesano.net/disable-related-videos-on-a-embedded-youtube-player-3/

Posted by: gloverdebut1991.blogspot.com

0 Response to "How To Stop Embedded Youtube Videos From Playing Simultaneously"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel