I know how to embed a youtube video with a playlist and it's all fine. Except I don't get events. I need to know when the video or playlist is over. I know how to use the youtube API to load in a video and get the stop event. I don't know how to get them both together.
Here is an example to test with https://www.youtube.com/watch?v=YlUKcNNmywk&list=PLE5FFF0C74122C403. I tried queue playlist and looking at the other commands. It appears I can create a playlist dynamically. I don't know how to get a list of videos in an already existing playlist. My goal is having someone drop in a video id + playlist id and find out when the video/playlist is over.
Related
Youtube use to have a feature where you could click a more videos button while watching any video, and see a snapshot of the uploads playlist with videos uploaded before and after the one you are currently watching.
I am trying to get a list like that with the v3 data API and it seems there is no way. There use to be a way to dictate an index when using the playlistItems call, but now there isn't.
If you go to a channels upload playlist and click play all, you can see a list of videos surrounding the one you are watching, so it seems this functionality is possible, but I don't know how they are doing it.
Any ideas?
I need to create a playlist on Youtube with highlights from a livestream; I thought I can add them via API and the startA`` andendA`` properties, but it seems as if Youtube removed that feature:
https://productforums.google.com/forum/m/#!topic/youtube/Gipu_cCDScI
If I add playlistitems via API and set both properties, the item is added in full length to the playlist.
Is there any possibility to add only a part of the livestream video to the playlist? Cropping manually or whatever, I just need to create a highlights-playlist...
This featured was deprecated with the v2 API without replacement int he v3 API. You will have to manually download the video of the Live Event, cut up the video with your favorite editor, re-upload the newly cut video, and add that to a playlist.
I'm trying to feed videos from a YouTube channel to a website. I've been able to add the videos one by one but I would like to add the whole YouTube channel very interactively on the website. Any idea?
Using Data API v3, you can get a list of all playlists associated with your channel.
'https://developers.google.com/youtube/v3/docs/channels#properties' ->
'contentDetails.relatedPlaylists'
Iterating through these playlists, you can get video ids and feed them.
'https://developers.google.com/youtube/v3/docs/playlistItems#resource' ->
'contentDetails.videoId'
Or you can put the whole playlist as a player by,
going to playlists ->
'player.embedHtml'
I'm creating a media house mock app and am wondering whether there is a way I can get video playlists from a certain account which is not mine for example if a user has a page that is http://www.youtube.com/someuser is it possible to get all the videos and playlist from that user?
You can use youtube video feeds(Youtube RSS Video Feeds)
Make following requests using GET and read the xml data returned.
http://gdata.youtube.com/feeds/api/users/{{username}}/playlists - For playlists
http://gdata.youtube.com/feeds/api/users/{{username}}/uploads - For uploads
Orderby parameter can be used to change order of videos.
I have been using the Google data API to search video from Youtube and play it back in a chromeless player as part of a Flash (AS2) swf I have developed. here's my workflow -
Search Youtube with PHP page that includes Zend_Gdata_YouTube class
Retrieve and display videos in a Flash swf which play if user clicks.
Store video ids in database for playback later - like a playlist
Then when the playlist is played (in another swf) the database is read to get the video ids to play and Flash loads the videos as needed.
Here's the problem. While the search works fine and returns thumbnail images of all the videos some of them do not play on click. Using Firebug in firefox I see that the attempted load of the video returns a 204 No content, but there is no info in the response tab. SO ...
a) how would I catch these videos so they dont get returned in the search results?
b) What would happen if a video that did play ok initially later got removed from Youtube, how could I catch this (preferably with flash) and remove it from the playlist (database).
any thoughts?
cheers