Add youTube video with no related video shown at the end

minh's Avatar

minh

26 Oct, 2012 04:38 PM

I need to add a youtube video that doesn't have the related videos once the video is finished playing. I founda code in youTube that can do that:

Problem is how do I add this video into my current slide? Checking the manual, it seems like option youTubeCode is the way to go, but what do I add in the HTML for that?

  1. 1 Posted by minh on 26 Oct, 2012 04:39 PM

    minh's Avatar

    I tried looking at http://help.dimsemenov.com/kb/royalslider-javascript-api/adding-sup... and it didn't really explain much either.

  2. Support Staff 2 Posted by Dmitry Semenov on 27 Oct, 2012 02:52 PM

    Dmitry Semenov's Avatar

    Hi,

    Simply add this option to video section of slider options (&rel=0 to the end of url):

    youTubeCode: '<iframe src="http://www.youtube.com/embed/%id%?autoplay=1&showinfo=0&rel=0" frameborder="no"></iframe>'
    

    http://dimsemenov.com/plugins/royal-slider/documentation/#video

    https://developers.google.com/youtube/player_parameters#rel

    Dmitry

  3. Dmitry Semenov closed this discussion on 21 Nov, 2012 07:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac