2010-12-12 114 views
3

我正在使用YouTube YouTube API来按关键字查询视频。结果必须在Android Youtube应用上播放,但有时我收到的错误是该视频在移动设备上不可用。Youtube API:搜索可在移动设备上播放的视频

是否有一个参数/选项来搜索可在移动设备上播放的视频?

回答

6

如您所见: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html 您可以为查询指定格式参数。

 
1 RTSP streaming URL for mobile video playback. H.263 video (up to 176x144) and AMR audio. 
5 HTTP URL to the embeddable player (SWF) for this video. This format is not available for a video that is not embeddable. Developers commonly add &format=5 to their queries to restrict results to videos that can be embedded on their sites. 
6 RTSP streaming URL for mobile video playback. MPEG-4 SP video (up to 176x144) and AAC audio. 
+0

你知道哪一种格式应该是适用于Android的youtube应用的正确格式吗? – nr1 2010-12-12 22:10:56

+3

对于我所做的工作,我会赞赏一些赞成票。消除过程:H.263比MPEG-4更加压缩。所以跟1一起去吧 – hunterp 2010-12-12 22:20:33

相关问题