我要访问YouTube视频和播放用我自己的媒体播放器。我能够获得使用YouTube数据API视频属性(标题,网址等)。我可以访问视频流,并利用自己的媒体播放器(如Android的媒体播放器)进行播放。 我想在JAVA所有这些。
I want to access a youtube video and play using my own media player. I am able to get the video properties (title, url etc..) using the youtube data API. Can I get access to the stream of the video and use my own Media Player (like the Android Media Player) to play it. I am trying all of these in JAVA.
在此先感谢..:)
推荐答案
您不能。看看这里进一步阅读什么的API可以处理: YoutubeAPI 如果你能得到的一个InputStream,谷歌不会得到任何钱的广告都没有。 但是你可以解析视频的URL,你从API获得的页面,寻找闪光标签中真正的视频链接。
You can't. Look here for further reading on what the API could handle: YoutubeAPI If you could get an InputStream on that, Google won't get any money for advertisement at all. But you could parse the page of the video-url you got from the API and look for the real video-link inside the flash tags.
相关推荐
最新文章