开发者

Youtube API: Search videos playable on mobile devices

I'm using the youtube api to query by keyword for videos. The result has to be playable on Android Youtube App, but开发者_JS百科 sometimes i'm getting an error that the video is not available on mobile devices.

Is there a parameter / option to search for videos that are playable on mobile devices?


As you can see in: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html You can specify a format parameter for your query.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜