Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用此代码通过启动意图让用户选择要使用的视频应用程序来加载 Youtube 视频:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watchv=cxLG2wtE7TM")));
通过这样做,我可以加载 Youtube 网页,用户需要单击播放按钮来播放视频,然后视频开始播放。我怎样才能避免这个中间步骤。
看看这篇文章也许是Android YouTube 应用播放视频意图
这是官方文档:
https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/package-summary