Hello,
You'll need more than that to use the YouTube Player JavaScript API.
You could start from the sample at
https://developers.google.com/youtube/iframe_api_reference#Getting_Started
and modify that. One way would be to modify the onPlayerReader()
callback in that sample to include your loadPlaylist call. You can use
the "event.target" variable from within that callback instead of
"ytplayer", so it would look like
event.target.loadPlaylist(...)
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Apr 27, 1:17 pm, leskimooo <thomasmontar...@gmail.com> wrote:
> Hi,
>
> I have tried to use youtube api but there is an error using loadPlaylist :
> result of expression loadPlaylist is not a function [undefined]
>
> My call :
> ytplayer.loadPlaylist(tabmusiqueselec, 1, 10, "small");
>
> tabmusiqueselec is an array of the different youtube ID of the playlist
>
> At the beginning I though I didn't have the proper link to load all these
> function :
>
> <script src="http://www.google.com/jsapi" type="text/javascript"></script>
>
> Is that enough to use loadPlaylist ?
>
> I may look stupid here but thank you
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment