I have a problem about Youtube iOS SDK (youtube-ios-player-helper). I am able to use it in my iOS native code now and it's working fine.
The problem is there are some videos which unable to watch on the application. The video iframe shows this:
Youtube video problem
Can anyone find any ways to pass through it? Or maybe is there any parameters for the search API which filter those kinds of video out of my results?
My search API is https://www.googleapis.com/youtube/v3/search?part=snippet&q=Mật vụ bóng đêm&maxResults=50&type=video with region VN.
Thanks a lot for your help.
There are some sites on internet where they use VideoJs player to play videos from youtube. when you look at their source code it is shows something like this.
https://r1---sn-npo7enel.c.docs.google.com/videoplayback?expire=1412784736&ipbits=0&upn=nGmhLDiNQ9k&signature=9B6BA94D1BEF02870C22D4E941C48DC4E783C32A.BC6F3F47F563FC8E4FC98C374A7B5DD662E58304&itag=5&sver=3&id=o-AK3QyGdV8rMOYUPM8hXx6ac8f3WXvn8DZRbkvPtPruBi&mv=m&initcwndbps=16152500&source=youtube&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Csource%2Cupn%2Cexpire&ms=au&key=yt5&ip=128.199.133.159&mm=31&fexp=907257%2C916941%2C924630%2C924637%2C927622%2C930666%2C931983%2C932404%2C934030%2C944312%2C946013%2C946509%2C947209%2C948703%2C952302%2C953801&mt=1412763072
Im sure its not a google drive video. its youtube video but they are playing it from docs.google.com instead of googlevideos.com. How are they getting this link?
can anybody help me with that. I need this for some reason.
It is very easy. Just replace the googlevideo.com in the youtube download url to c.docs.google.com
Thank you for asking this question. I know this after searching sometime.
YOUTUBE DOWNLOAD URL:
http://r2---sn-h557snee.googlevideo.com/videoplayback?sver=3&expire=1413317317&mv=m&mt=1413295596&ms=au&id=o-AFQYWPcu_Mgj7ApyBmoMopG3mkbxQgKxFOa3It4kBoSm&mm=31&source=youtube&initcwndbps=1216250&mime=video/mp4&ip=27.251.66.2&fexp=3300013,3300112,3300134,3300137,3300164,3310366,3310708,3312224,907257,916941,927622,930666,931983,932404,934030,936118,936222,946013,947209,952302,953801,953903&itag=18&sparams=id,initcwndbps,ip,ipbits,itag,mime,mm,ms,mv,ratebypass,source,upn,expire&signature=49C37B73B3253F473F15AF6F8292D1628B63194C.7B10B7E983B7F4288933EBB0E821C84169653F0C&ratebypass=yes&ipbits=0&key=yt5&upn=KW7cc7l_RHs&title=Aaranya%20Kaandam
CONVERTED URL
http://r2---sn-h557snee.c.docs.google.com/videoplayback?sver=3&expire=1413317317&mv=m&mt=1413295596&ms=au&id=o-AFQYWPcu_Mgj7ApyBmoMopG3mkbxQgKxFOa3It4kBoSm&mm=31&source=youtube&initcwndbps=1216250&mime=video/mp4&ip=27.251.66.2&fexp=3300013,3300112,3300134,3300137,3300164,3310366,3310708,3312224,907257,916941,927622,930666,931983,932404,934030,936118,936222,946013,947209,952302,953801,953903&itag=18&sparams=id,initcwndbps,ip,ipbits,itag,mime,mm,ms,mv,ratebypass,source,upn,expire&signature=49C37B73B3253F473F15AF6F8292D1628B63194C.7B10B7E983B7F4288933EBB0E821C84169653F0C&ratebypass=yes&ipbits=0&key=yt5&upn=KW7cc7l_RHs&title=Aaranya%20Kaandam
Is there any documentation about the http://www.youtube.com/get_video_info?video_id=XXX ?
Since a week or so it seems I do not get correct information anymore. I am using the url_encoded_fmt_stream_map property in the response stream to get the url for the video link of the mp4 type of my video. But this property is now returning an empty value.
Has something been changed in the get_video_info functionality?
The get_video_info endpoint is not, and has never been, a supported public API.
If you'd like to play back YouTube content, you need to use one of the official YouTube Players:
https://developers.google.com/youtube/getting_started#player_apis
Is this possible to allow just a specific website to display a youtube video
with the iframe embeded code? or with the api
With the iframe code alone it is not possible. Your youtube-video displayed on the youtube website. As long as anyone can view this video by going to youtube like thishttp://www.youtube.com/watch?v=jJjg4JweJZU
for example, anyone can embedd it using an iframe.
What you could do is limit the acces to this video itself. As far as I remember you could specify whether anyone or just your friends can whatch your video.
The latter case may not keep people from embedding your video, but it will keep them from viewing it as long as they are not logged in to youtube and are your friends there.
I wonder if anyone ever encounters this problem. I am trying to embed "The Killers - Human" Music Video.
When I did an API feed request as follow:
http://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc&q=_Q9B9LOJIXsk
It shows that the video is embeddable and is not blocked. It even states that you can embed using the following URL:
http://www.youtube.com/v/Q9B9LOJIXsk?f=videos&app=youtube_gdata
However, when I tried this and played the video, I have received an error that the video contains content from UMG and is restricted to playback on certain sites. It is SUPPOSED to be able to playback.
I have double checked all the states etc. I wonder if I have missed anything to determine if a video is not embeddable or not on certain site.
Thank you for your help.
when you open the json you can actually see this
"status":{"value":"restricted","reason":"limitedSyndication"},
"restrictions":[{"type":"country","relationship":"deny","countries":"DE"}]