Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3259
    Kevin Maines
    Participant

    The plugin was working with a straight link to a youtube video, but I don’t want the related videos to appear at the end of the video so I need to use the embedded code with “?rel=0” at the end of the link. I tried this code and it doesn’t work:

    http://consultancellc.com/
    https://youtube.com/watch?v=gi9RRxftcC4%3Frel%3D0

    Any help would be appreciated.

    Thanks,
    Kevin

    #3260
    Bartosz
    Keymaster

    Kevin, from what I see there are no related videos at the end of this one (if ?rel=0 is used).

    #3326
    Kevin Maines
    Participant

    Bartosz,

    If you look at:
    http://consultancellc.com/

    You’ll see that the link that uses your lightbox plugin on the right side of the page (“Check Out Our Latest Video for Nonprofits”) doesn’t work. It’s loading the embedded code for the youtube video with the “?rel=0”, but it doesn’t work. I assume that you can’t use the embedded code with your plugin, only a direct link to a video? And if I add the “rel=0” to the end of a direct link it gets stripped away by youtube.

    #3327
    Bartosz
    Keymaster

    I see the problem now:

    1.
    This one will not work in lightbox at all, but no related videos are displayed if used without lightbox.
    http://www.youtube.com/embed/gi9RRxftcC4?rel=0

    2.
    This one will work in lightbox, but with related videos displayed even though the rel=0 is added.
    http://www.youtube.com/watch?v=gi9RRxftcC4&rel=0

    Tested on Nivo and Swipebox. It would work if you switch to iframe mode and one of the older scripts – prettyPhoto or Fancybox, what is not the best option.

    From my research the second example should work. But it doesn’t :(

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.