use*_*283 3 android youtube-api android-intent android-activity
我应该使用什么参数启动vnd.youtube,使其在到达视频结尾时关闭活动.在Youtube API中,它是这样的:
YouTubeIntents.createPlayVideoIntentWithOptions(getApplicationContext(), mVideoId, true, true);
Run Code Online (Sandbox Code Playgroud)
我想知道直接启动youtube活动的"finishOnEnd"选项的等效项,如下所示:
Intent viewIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + mVideoId));
viewIntent.putExtra("force_fullscreen", true);
viewIntent.putExtra("force_finishOnEnd", true);
startActivity(viewIntent);
Run Code Online (Sandbox Code Playgroud)
我发现"全屏"的等价物是"force_fullscreen",但"finishOnEnd"选项怎么样?
谢谢.
| 归档时间: |
|
| 查看次数: |
801 次 |
| 最近记录: |