如何获得RTSP链接的Andr​​oid如何获得、链接、oid、RTSP

2023-09-12 09:39:35 作者:一種不羈於世的Feelヾ

上午有像http://www.youtube.com/v/YR71GnQ4CU4?f=videos&app=youtube_gdata ,那么如何将其转换为RTSP格式VideoView玩。

Am having you-tube links like http://www.youtube.com/v/YR71GnQ4CU4?f=videos&app=youtube_gdata , then how to convert it to RTSP format to play in VideoView.

正在寻找GDATA API与此:http://gdata.youtube.com/feeds/api/videos?&max-results=20&v=2&format=1&q="+ URLEn coder.en code(activity.criteria),但我无法找到如何获得相关的RTSP URL。

Am searching gdata api with this: http://gdata.youtube.com/feeds/api/videos?&max-results=20&v=2&format=1&q="+ URLEncoder.encode(activity.criteria) but i cant find how to get related RTSP url.

推荐答案

我有我的答案..thanx这个

I got my answer ..thanx to this

Element rsp = (Element)entry.getElementsByTagName("media:content").item(1);

                              String anotherurl=rsp.getAttribute("url");

在GDATA API只有我们得到这种类型的链接: rtsp://v3.cache7.c.youtube.com/CiILENy73wIaGQlOCTh0GvUeYRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp

In gdata api only we are getting this type of links : rtsp://v3.cache7.c.youtube.com/CiILENy73wIaGQlOCTh0GvUeYRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp

这些正在发挥VideoView。

These are playing in VideoView.