如何获得RTSP链接的Android [英] How to get RTSP Links Android
问题描述
上午有像<一个你管链接href="http://www.youtube.com/v/YR71GnQ4CU4?f=videos&app=youtube_gdata">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与此:<一href="http://gdata.youtube.com/feeds/api/videos?&max-results=20&v=2&format=1&q=">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只有我们得到这种类型的链接: <$c$c>rtsp://v3.cache7.c.youtube.com/CiILENy73wIaGQlOCTh0GvUeYRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp$c$c>
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.
这篇关于如何获得RTSP链接的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!