title: How to provide start and end parameters for a youtube video in youtube Android player?
body: <p>I am using an Youtube Player api for playing youtube videos in my application. I want to start the video from suppose 36sec and wants to end this video at some 65sec.</p>
  
  <p>example: <a href="https://www.youtube.com/v/BmOpD46eZoA?start=36&amp;end=65" rel="noreferrer">https://www.youtube.com/v/BmOpD46eZoA?start=36&amp;end=65</a></p>
  
  <p>I am using youtubeAndroidPlayer Api. I didnt find any methods for Youtubeplayer to set the start and end values.could anyone suggest how can I set the parameters.</p>
  
  <p>And I also want the controls to be hide using the "controls" field in youtube api,but I didnt find any methods to hide this.</p>
  
  <p>my xml:</p>
  
  <pre><code>&lt;LinearLayout 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"
      android:orientation="vertical"
      tools:context=".MainActivity" &gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="http://android-er.blogspot.com/"
          android:textStyle="bold"
          android:layout_gravity="center_horizontal"
          android:autoLink="web" /&gt;
  
      &lt;com.google.android.youtube.player.YouTubePlayerView
          android:id="@+id/youtubeplayerview"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My  Activity:</p>
  
  <pre><code>public class MainActivity extends YouTubeBaseActivity implements
  YouTubePlayer.OnInitializedListener{
  
   public static final String API_KEY = "AIzaSyCe6tORd9Ch4lx-9Ku5SQ476uS9OtZYsWA";
   public static final String VIDEO_ID = "xyoajjlPt_o";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          YouTubePlayerView youTubePlayerView = (YouTubePlayerView)findViewById(R.id.youtubeplayerview);
          youTubePlayerView.initialize(API_KEY, this);
  
  
      }
  
   @Override
   public void onInitializationFailure(Provider provider,
     YouTubeInitializationResult result) {
    Toast.makeText(getApplicationContext(), 
      "onInitializationFailure()", 
      Toast.LENGTH_LONG).show();
   }
  
   @Override
   public void onInitializationSuccess(Provider provider, YouTubePlayer player,
     boolean wasRestored) {
    if (!wasRestored) {
          player.cueVideo(VIDEO_ID);
  
        }
   }
  </code></pre>