I have a question related to capturing VEVO videos on artist channels.
When I make a request to the API via the playlist, these VEVO videos don't appear in the channel's video list
example:
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet
&maxResults=30&orderby=time&playlistId={UUnJoUTYXU142gxoyDzp-KRQ}&key={api_key}
Another playlist id where this occurs {UC4WvVh0AwJ6K9w1JLepce7A}
I tried to use videoSyndicated and videoEmbeddable a few times, but none of them proved effective in the case.
Can you help with any suggestions to work around this problem?
Thankful (:
Related
I am wondering if anyone knows what could be the cause of this.
On a channel's upload playlist, it states there are 143 videos in the playlist:
When I use the "Playlistitems" API (with paging):
https://developers.google.com/youtube/v3/docs/playlistItems/list
I get 138 items.
I have singled out a specific video that is in the Playlist on YouTube as an example. Video ID Q3UDhRDLbPg:
But when I use the "Playlistitems" API explorer, on the playlist and specify the specific video, I get zero results.
The video is public and was uploaded a few days ago. Some videos that were uploaded on the same day does exist in the results too.
Has anyone seen this problem before and might know the cause of it?
This issue is solved.
As #stvar pointed out, there is some kind of a delay in YouTube's backend, some videos might take longer to be included than others.
All videos are accounted for now, 4 days after the upload time.
Recently, I tried to use OEmbed service to get iframe code for the video url with playlist query param, but OEmbed service us the iframe code which hasn't the same video as i asked.
Here is the video url with playlist query param:
https://www.youtube.com/watch?v=B2PhzzVwRM4&index=5&list=PLXtHYVsvn_b-7onG7XS6HN7v9XlVEFvJL
Here is YouTube OEmbed service url for getting iframe code of the video:
https://www.youtube.com/oembed?url=https%3a%2f%2fwww.youtube.com%2fwatch%3fv%3dB2PhzzVwRM4%26index%3d5%26list%3dPLXtHYVsvn_b-7onG7XS6HN7v9XlVEFvJL
But OEmbed service return me the iframe code which turn out not the same video as I ask.
Here is iframe code returned:
https://www.youtube.com/embed/videoseries?list=PLXtHYVsvn_b-7onG7XS6HN7v9XlVEFvJL is not the same video as https://www.youtube.com/watch?v=B2PhzzVwRM4&index=5&list=PLXtHYVsvn_b-7onG7XS6HN7v9XlVEFvJL
Could anyone help me to take a look how can I get the right video through YouTube OEmbed sevice?
You forgot to place the index number of the actual video from the playlist that is why you always end up calling the first video of the playlist.
Upon checking the actual playlist, there are 9 videos. Since the 5th video seems to be the one you are calling, you must include "index=4" since the numbering will start at 0 from the first video. Try the link below:
https://www.youtube.com/embed/videoseries?index=4&list=PLXtHYVsvn_b-7onG7XS6HN7v9XlVEFvJL
This link should return the actual video that you need.
We are able to play youtube videos by fetching the data using Youtube API for iOS Application. We would like to play a set of videos continuously like a playlist. Can someone guide us through this issue. we tried using different players but none of them are working for youtube links. we have used MPMoviePlayerViewController but it doesn't play videos continuously, and AVQueuePlayer we were able to play MP4 videos stored in the app but unable to play youtube links.
It would be a great help if someone can help us
Thanks in advance.
I'm having an hard time trying to figure out how I can get a list of videos that are live for a given channel. For instance for this channel:
https://www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig
I can get the videos from the uploads playlist or any playlist without any issue. However, I can't figure out how to get a list of live broadcasts.
Many thanks in advance
Solved by using:
https://developers.google.com/youtube/v3/docs/search/list
There, you can filter by channelId and filter by live only if you add type=video and eventtype=live.
Thanks anyway
I have searched the web tirelessly and looked through the YouTube API, but I still can't seem to find a way in which to request videos from a specific channel which have been uploaded since a certain date-time.
Something along the lines of this:
GET https://www.googleapis.com/youtube/v3/channels?part=videoContent&channel=UC_x5XG1OV2P6uZZ5FSM9Ttw&uploadedAfter=1421056357914
What you'd want to do is to get the channel's uploads playlist, the do a playlistItems.list with it.
Though currently playlistItems.list doesn't support orderBy or uploadedAfter, it's in the works.