Using Youtube Intent to launch a video from a defined starting point

The question is easy :)

I want to start a youtube video from a defined starting position.

In a regular browser, you can achieve this by appending a #t=1m20s at the end of the url like in:

http://www.youtube.com/watch?v=HKdsra1O20Y#t=30m10s

But If I use that URL in the Intent, the Android player is not putting the start at that point.

I'm using this to launch the activity:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=HKdsra1O20Y#t=30m10s")));

But the video starts from the begining :(

Thanks


您可以轻松使用Google Gdata api来调用YouTube 3gp视频,然后您只需将3gp加载到MediaPlayer实例中,您可以轻松使用它的seekTo方法。

链接地址: http://www.djcxy.com/p/48600.html

上一篇: CURL CouchDB复制命令

下一篇: 使用Youtube Intent从定义的起点开始播放视频