SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2003
    Location
    New York
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable related youtube video on Mobile device

    Hello every one, I know how to disable related video for web page or browsers.

    But I just noticed, if I use mobile device to play that video, at the end of video, it will still show the related video at the end of the video.

    Does anyone know how to disable that on mobile devices? like iPhone, iPad, android phones?

    What code do I need to use, or is it even possible?

    Thank you!

  2. #2
    SitePoint Wizard
    Join Date
    Feb 2007
    Location
    Southern California
    Posts
    1,338
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you look at the embed code for a video on YouTube, you'll see:

    <iframe width="560" height="315" src="http://www.youtube.com/embed/XMF22_MEMJU" frameborder="0" allowfullscreen></iframe>

    If you deselect the checkmark to "Show suggested videos when the video finishes", you'll see:

    <iframe width="560" height="315" src="http://www.youtube.com/embed/XMF22_MEMJU?rel=0" frameborder="0" allowfullscreen></iframe>

    Try the addition of ?rel=0 to your code and see if that works.
    Steve Husting


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •