views:

113

answers:

1

I've looked through the YouTube JS API, but can't find a way to jump to a video in a playlist. (Mimicking the built-in navigation) And if you're wondering why I'd want both, it's because I have a menu set up with additional information, and want to let the user click these links to jump between the videos.

+1  A: 

You can write your own YouTube player script or use this one -- YouTube JavaScript API Player plus Playlist.

Salman A
Wow, that looks pretty neat, man. But I seem to be getting the same problem as one of your commenters: `o.loadVideoById is not a function`... Could it be because I'm running it in an html file that's just on my hard drive?
peirix
Could be for various reasons. Try running it through localhost and keep an eye on JavaScript errors.
Salman A
Yeah, running it on localhost solved it. So I guess there are some weird issues with the youtube API running from hard drive, then? Your script's awesome, by the way, just had to do some minor tweaks, and it's pretty much what I was looking for.
peirix