gpt4 book ai didi

android-studio - com.google.android.youtube.player.youtubeplayerviewmodestbranding被禁用或隐藏在android中

转载 作者:行者123 更新时间:2023-12-03 18:06:08 26 4
gpt4 key购买 nike

google youtube播放器使用

@Override
public void onInitializationSuccess(Provider arg0, YouTubePlayer player,
boolean restored) {
// TODO Auto-generated method stub
player.setFullscreenControlFlags(YouTubePlayer.FULLSCREEN_FLAG_CONTROL_ORIENTATION);

//This flag tells the player to automatically enter fullscreen when in landscape. Since we don't have
//landscape layout for this activity, this is a good way to allow the user rotate the video player.
player.addFullscreenControlFlag(YouTubePlayer.FULLSCREEN_FLAG_ALWAYS_FULLSCREEN_IN_LANDSCAPE);

if(!restored){ //lnIEn0kWdhY
player.cueVideo(getIntent().getStringExtra("VIDEO_ID"));
//player.cueVideo("lnIEn0kWdhY");
//player.setPlayerStyle(YouTubePlayer.PlayerStyle.DEFAULT);
}
else {
Log.e("dd","dff");
}
}

最佳答案

使用最小的视频播放器样式隐藏YouTube图标。但是它将仅显示计时器栏的播放/暂停控件。

player.setPlayerStyle(YouTubePlayer.PlayerStyle.MINIMAL);

关于android-studio - com.google.android.youtube.player.youtubeplayerviewmodestbranding被禁用或隐藏在android中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39363703/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com