How do I get video info for Youtube Vevo Videos? - youtube

I was trying to play YouTube Videos outside YT player, When I was trying to download info using "http://www.youtube.com/get_video_info?video_id=" for Vevo Channel videos it gives the following content!
errordetail=0&reason=This+video+contains+content+from+VEVO.+It+is+restricted+from+playback+on+certain+sites.%3Cbr%2F%3E%3Cu%3E%3Ca+href%3D%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1G4isv_Fylg%26feature%3Dplayer_embedded%27+target%3D%27_blank%27%3EWatch+on+YouTube%3C%2Fa%3E%3C%2Fu%3E&storyboard_spec=http%3A%2F%2Fi2.ytimg.com%2Fsb%2F1G4isv_Fylg%2Fstoryboard3_L%24L%2F%24N.jpg%7C48%2327%23100%2310%2310%230%23default%23zmO7uhaupuPIrI2qBZC2EBjg2oc%7C80%2345%23131%2310%2310%232000%23M%24M%23sxd-GFqCDrqpnzGPaNdxyOtaxtU%7C160%2390%23131%235%235%232000%23M%24M%23of8CiThJl9d5Upo9rUKgWs93QyE%7C320%23180%23131%233%233%232000%23M%24M%236gImdPOIrD6Bdl5e6iePOdKSdMA&loudness=-16.4200000763&errorcode=150&status=fail
I can't do anything with it, Does anyone have any ideas for Vevo Videos?

http://www.youtube.com/get_video_info?video_id=yt_video_id&el=vevo&el=embedded
Replace yt_video_id with the id of the video you're trying to get.

Related

AVPlayer can't play Vevo Youtube video

I'm developing my youtube app on iOS and using AVPlayer to play video. But I don't know why my player can't play the Vevo video. Any idea for my problem? Thanks a lot.
You should use the iOS Youtube Helper library for playing youtube videos.
https://developers.google.com/youtube/v3/guides/ios_youtube_helper
I don't know if you can use the AVPlayer. I've seen some examples using MPMoviePlayerController on CocoaControls, like this one: https://www.cocoacontrols.com/controls/hcyoutubeparser or this one: https://www.cocoacontrols.com/controls/xcdyoutubevideoplayerviewcontroller
But I don't think using youtube's url directly in your player fits the ToS of the platform. So I will recommend you tu use the Youtube Helper Library if you are planning to publish your app.

Getting the url of the youtube video

Is there a way to get the youtube video without the youtube player? The youtube player sdk - https://developers.google.com/youtube/android/player/
uses the existing youtube player, I need the url that it uses to play the video, so that I can use my custom video player. More of using youtube as a hosting service, where I can pull the videos from the server from which youtube player pulls it. Don't know if it is possible or legal.

How to play youtube Videos continuously like a playlist?

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.

How to play just the audio of YouTube Video?

In my app I have played a youtube video by embedding it, but how can i only play the audio of the video? I tried using AVAudioPlayer and use the videos url as the file path but it didnt work, any help?
No it is not possible, only one workaround is just to use a hidden UIWebView and play in that.
Youtube forbids playing audio only! here is the message from youtube
Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to: "separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API"
-Kuan Yong, YouTube API Team

How to play video in streaming by using iOS GoogleDrive SDK?

I want to play video in streaming by using iOS GoogleDrive SDK.
GoogleDrive App in iOS app store can play video in streaming by YouTube.
I have seen this post:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
According to the post, the key of play video is the YouTube source link.
The link lists GoogleDrive's all of file properties:
https://developers.google.com/drive/v2/reference/files
All file's properties were tried to instead of the YouTube source link, but that doesn't work.
Could anyone tell me how to get the correct link to play video by YouTube?
Thank you very much.
You can the URL in the embedLink field to get a streaming player for the video.

Resources