我使用“https://www.youtube.com/get_video_info”来获取视频信息,缩略图图像和视频URL
要在自定义视频播放器中播放视频,但在点击“vevo Channels ”视频时 .
它不会返回任何视频网址 . 我也尝试了“get_video_info”api中的不同参数 . 示例:
https://www.youtube.com/get_video_info?hl=en&video_id=0KSOMA3QBU0&eurl=&el=embedded&gl=US&ps=default
https://www.youtube.com/get_video_info?hl=en&video_id=0KSOMA3QBU0&eurl=&el=vevo&gl=US&ps=default
https://www.youtube.com/get_video_info?hl=en&video_id=0KSOMA3QBU0&eurl=&el=&gl=US&ps=default
There are many of the videos not getting the video info. There are following videos, its not getting the video info.
https://www.youtube.com/watch?v=3O1_3zBUKM8
https://www.youtube.com/watch?v=kHue-HaXXzg
https://www.youtube.com/watch?v=PNu_-deVemE
https://www.youtube.com/watch?v=CevxZvSJLk8
https://www.youtube.com/watch?v=CEUg7OplvIQ
but we can play this videos in some of the live application.Example
https://play.google.com/store/apps/details?id=com.tfsapps.playtube2
https://itunes.apple.com/in/app/itube-playlist-management/id789819758?mt=8
https://itunes.apple.com/ca/app/itube-free-music-playlists/id866761482?mt=8
怎么可能?
if I want to play all the videos, so what's the solution ??
2 回答
从YouTube检索videoUrl的网址为
https://www.youtube.com/get_video_info?video_id=/*videoId*/&el=vevo&el=embedded&asv=3&sts=15902
以下是如何通过videoId获取videoUrl . Lua代码:
您可以将其“翻译”为Objective-C代码 .
希望这可以帮助 .
这种类型的视频只能在嵌入真实网站时播放 . 我们不会通过API公开这些列表 .
这篇博文还有一些细节:
http://apiblog.youtube.com/2011/12/understanding-playback-restrictions.html