最佳答案
您需要使用 YouTube Android Player API。请参阅此处的说明:https://developers.google.com/youtube/android/player/
如果您想通过Intent
打开 youtube channel ,您可以使用以下代码段:
public static void watchYoutubeVideo(Context context, String channelId) {
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www.youtube.com/channel/" + channelId));
context.startActivity(intent);
}
关于android - 如何在 android 中显示 Youtube 视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33483980/