3
我有用Java编写的内容管理服务器应用程序。后台流程会经历一系列视频ID并使用Youtube API获取这些视频ID的详细信息。 我想检查一个特定的视频条目是否可用于移动或不。 我检查辛迪加允许像Youtube API Java客户端库 - 如何检查视频条目是否适用于移动设备?
String videoEntryUrl = "http://gdata.youtube.com/feeds/api/videos/"+videoID;
VideoEntry videoEntry = service.getEntry(new URL(videoEntryUrl), VideoEntry.class);
if(!videoEntry.getXmlBlob().getBlob().contains("yt:accessControl permission='denied' action='syndicate'")){
System.out.println("The video is syndicatable");
}
检查财团仍然没有解决问题,服务器仍然不能Android手机上播放影片让。 什么是正确的方式来过滤只能在移动设备上播放的视频?
不[此链接](https://developers.google.com/youtube/2.0/ developers_guide_protocol_api_query_parameters)有帮助吗? – 2013-04-09 03:15:36