Android的播放视频的意图与起始位置 [英] Android play video intent with start position

查看:147
本文介绍了Android的播放视频的意图与起始位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用意图(这里感谢现有的答案/问题),使用下面的播放视频:

 意图TOSTART =新意图(Intent.ACTION_VIEW);
tostart.setDataAndType(Uri.parse(movieurl),视频/ *);
startActivity(TOSTART);

这起利用一些默认的视频播放器顶部的视频。现在的问题是,如果有可能设置的意图,使得视频开始播放几秒钟(或帧)插入视频?


解决方案

  

现在的问题是,如果有可能设置的意图,使得视频开始播放几秒钟(或帧)插入视频?


有什么在支持这个 ACTION_VIEW 的规范,对不起。

I can play video using intent using the following (thanks to existing answers/questions here):

Intent tostart = new Intent(Intent.ACTION_VIEW);
tostart.setDataAndType(Uri.parse(movieurl), "video/*");
startActivity(tostart);

This plays the video from the top using some default video player. The question is if it's possible to setup the intent such that video starts playing some seconds (or frames) into the video?

解决方案

The question is if it's possible to setup the intent such that video starts playing some seconds (or frames) into the video?

There is nothing in the ACTION_VIEW specification that supports this, sorry.

这篇关于Android的播放视频的意图与起始位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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