的Youtube API:搜索视频上播放移动设备 [英] Youtube API: Search videos playable on mobile devices

查看:134
本文介绍了的Youtube API:搜索视频上播放移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用YouTube API使用关键字搜索视频查询。其结果必须是播放Android上的YouTube应用,但有时我得到一个错误,该视频无法在移动设备上。

I'm using the youtube api to query by keyword for videos. The result has to be playable on Android Youtube App, but 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?

推荐答案

正如你在看到: <一href="http://$c$c.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html">http://$c$c.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html 您可以为您的查询指定格式参数。

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.

这篇关于的Youtube API:搜索视频上播放移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆