embed multiple youtube videos to chromeless player cue
Posted
by Quaze
on Stack Overflow
See other posts from Stack Overflow
or by Quaze
Published on 2010-05-21T08:36:58Z
Indexed on
2010/05/21
8:40 UTC
Read the original article
Hit count: 306
So in the project ive been working on i use the youtube API to add a video to a chromeless player (got custom buttons, everything works no problems).
It loads the youtube id which it gets from the database (Codeigniter, PHP). But what i would like to see is: instead of loading 1 video, id like to add all the videos i get from the database in the cue of that one player.
So only one screen, first video retrieved from dbase gets played first, when its done second get loaded preferably also looped. Is there any way i can achieve this?
My first guess would be to save the array with youtube id's somewhere and on state change (when the 'video stop'-event gets fired) load the next id from the array. Havent tried this yet because id prefer if the cue gets just gets filled on the init, so it doesnt have to load after a video has been ended. Is This possible?
© Stack Overflow or respective owner