0

for example i have 4 youtube video id and want to be playing sync. means when first is end the second will play so on.. upto last.

currently using this kind of url https://www.youtube.com/v/LIQsyHoLudQ and want to load the multiple videos either with the embed tag or iframe.

i follow the develope https://developers.google.com/youtube/player_parameters?csw=1#playlist but not getting how it will happen ?

Thanks Rahul

2 Answers 2

2

You should be able to do that with the playlist parameter, as you said. For example:

<iframe src="http://www.youtube.com/v/LIQsyHoLudQ?version=3&loop=1&playlist=BKfcEdMO380,wLx5OGxOYUc"></iframe>

The playlist parameter takes a comma separated list of video IDs.

1
  • thanks for help. i try this way but have confused about how to play random among the list. e.i. I have three video and want to play no 2 on click of any button.
    – kag
    Nov 26, 2014 at 13:39
0

Did you try adding multiple VIDEO_ID in compa seprate with query string ? like http://www.youtube.com/embed/LIQsyHoLudQ?enablejsapi=1&autoplay=1&playlist=VIDEO_ID1,VIDEOID2

and for random you are saying like

public int GetRandom { return 2; }

It doesn't make any sense.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.