Try this
In your onInitializationSuccess method use this code
player.setPlayerStyle(YouTubePlayer.PlayerStyle.CHROMELESS);
Full code
@Override
public void onInitializationSuccess(YouTubePlayer.Provider provider,
YouTubePlayer player, boolean wasRestored) {
if (!wasRestored) {
// loadVideo() will auto play video
// Use cueVideo() method, if you don't want to play it automatically
player.loadVideo(Config.YOUTUBE_VIDEO_CODE);
// Hiding player controls
player.setPlayerStyle(YouTubePlayer.PlayerStyle.CHROMELESS);
//player.setPlayerStyle(YouTubePlayer.PlayerStyle.DEFAULT);
}
}
Note:-
1. For showing all interactive controls
public static final YouTubePlayer.PlayerStyle DEFAULT
2.For hiding all interactive controls
public static final YouTubePlayer.PlayerStyle CHROMELESS
3.For showing only a time bar and play/pause controls
public static final YouTubePlayer.PlayerStyle MINIMAL
For more visit official link