title: is it possible to hide media controller except play,pause,and seek bar from youtube player api
body: <p>i am trying to play youtube videos by using youtube player api, it is working but i want to hide some media controller except play,pause and seek bar , in my youtube player api has some unnecessary controller like setting,fullscree, i dont want this controller because my video should not navigate to youtube could you please help me how to resolve this issues</p>
  
  <pre><code>public class MainActivity extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener {
  
      ImageView im;
      private YouTubePlayer YPlayer;
       private static final String YoutubeDeveloperKey = "AIzaSyBWVhXZfBq0S37bzdwMzUtqbkxOAWrVoko";
       private static final int RECOVERY_DIALOG_REQUEST = 1;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          YouTubePlayerView youTubeView = (YouTubePlayerView) findViewById(R.id.youtube_view);
          youTubeView.initialize(YoutubeDeveloperKey, this);
  
  
          }
          @Override
          public void onInitializationFailure(YouTubePlayer.Provider provider,
          YouTubeInitializationResult errorReason) {
          if (errorReason.isUserRecoverableError()) {
          errorReason.getErrorDialog(this, RECOVERY_DIALOG_REQUEST).show();
          } else {
          String errorMessage = String.format(
          "There was an error initializing the YouTubePlayer",
          errorReason.toString());
          Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show();
          }
          }
          @Override
          protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          if (requestCode == RECOVERY_DIALOG_REQUEST) {
          // Retry initialization if user performed a recovery action
          getYouTubePlayerProvider().initialize(YoutubeDeveloperKey, this);
          }
          }
          protected YouTubePlayer.Provider getYouTubePlayerProvider() {
          return (YouTubePlayerView) findViewById(R.id.youtube_view);
          }
          @Override
          public void onInitializationSuccess(Provider provider,
          YouTubePlayer player, boolean wasRestored) {
          if (!wasRestored) {
          YPlayer = player;
          YPlayer.cueVideo("0vrdgDdPApQ");
          }
          }
  }
  </code></pre>
  
  <p>this is my xml code</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".TruitonYouTubeAPIActivity" &gt;
  
    &lt;com.google.android.youtube.player.YouTubePlayerView
          android:id="@+id/youtube_view"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>