title: YouTubePlayerFragment not working(Playing) in CollapsingToolbarLayout
body: <p>YouTubePlayerFragment not working(Playing) in CollapsingToolbarLayout.</p>
  
  <p>I want to play youtube video from youtube android api. Inside CollapsingToolbarLayout, YouTubePlayerFragment does not play, only thumbnail comes and after 1 seconds it goes to stop.</p>
  
  <p>I it work fine inside other layout. I want material design collapsing layout with youtube video. Please help me.</p>
  
  <pre><code>  &lt;android.support.design.widget.CoordinatorLayout
      android:id="@+id/root_coordinator"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
          android:fitsSystemWindows="true"&gt;
  
  
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/collapsing_toolbar_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:contentScrim="?attr/colorPrimary"
              app:expandedTitleMarginEnd="64dp"
              app:expandedTitleMarginStart="48dp"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
  
  
  
              &lt;!--&lt;ImageView
                  android:id="@+id/image"
                  android:layout_width="match_parent"
                  android:layout_height="250dp"
                  android:src="@drawable/ic_launcher"
                  android:visibility="visible"
                  app:layout_collapseMode="parallax" /&gt;--&gt;
              &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:id="@+id/layoutYoutube"
                  android:layout_width="match_parent"
                  android:layout_height="250dp"
                  android:visibility="visible"
                  app:layout_collapseMode="parallax"&gt;
                  &lt;fragment
                      android:id="@+id/youtube_fragment"
                      android:name="com.google.android.youtube.player.YouTubePlayerFragment"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" /&gt;
              &lt;/LinearLayout&gt;
  
  
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/app_bar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
                  app:layout_collapseMode="pin"&gt;
  
  
                  &lt;include
                      layout="@layout/toolbar_layout"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" /&gt;
  
              &lt;/android.support.v7.widget.Toolbar&gt;
  
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;FrameLayout
          android:id="@+id/frameContainer"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="1dp"
          android:background="@android:color/white"
          android:paddingTop="2dp"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
      &lt;/FrameLayout&gt;
  
  
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>