and*_*nnn 8 youtube android youtube-api youtube-channels
我想从我的应用程序访问youtube以打开一个频道.我搜索了一个解决方案但我刚刚找到了如何打开/流式传输视频:
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:VIDEO_ID"));
startActivity(i);
Run Code Online (Sandbox Code Playgroud)
但直接打开一个频道怎么样?
非常感谢你.
Byt*_*eMe 21
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(urlStr));
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)
如果你使用youtube频道的网址,例如:http://www.youtube.com/user/JustinBieberVEVO
这应该为您提供打开youtube到给定频道的选项.
希望这可以帮助!
| 归档时间: |
|
| 查看次数: |
12332 次 |
| 最近记录: |