title: Exoplayer video plays fullscreen before the complete layout is loaded
body: <p>In my Android application. I have added exoplayer in details activity and it will be reached by clicking a link from the recycler view list item. 
  Now the problem is while loading the details screen. </p>
  
  <p>The Exoplayer fills the screen for a moment and then the layout is getting populated. 
  I want the video to be loaded into the layout screen after clicking item in list without fullscreen loading. Please find below the gif regarding the same.</p>
  
  <p><a href="https://i.stack.imgur.com/ToQQV.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/ToQQV.gif" alt="enter image description here"></a></p>
  
  <p>XML layout of the Details screen.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
  
          &lt;com.google.android.exoplayer2.ui.SimpleExoPlayerView
              android:id="@+id/exo_player_view"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:backgroundTint="@color/cardview_dark_background" /&gt;
  
          &lt;ImageView
              android:id="@+id/exo_player_thumbnail_image"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              /&gt;
  
          &lt;android.support.v4.widget.ContentLoadingProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/exo_player_progress_bar"
              style="?android:progressBarStyle"
              android:layout_width="50dp"
              android:layout_height="50dp"
              android:layout_gravity="center"
              android:backgroundTint="@color/colorPrimary" /&gt;
  
  
      &lt;/FrameLayout&gt;
  
      &lt;TextView
          android:id="@+id/recipe_short_desc_text"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5dp"
          android:padding="5dp"
          android:text="short description"
          android:textSize="18dp"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id="@+id/recipe_desc_text"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5dp"
          android:padding="5dp"
          android:text="description"
          android:textSize="17dp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>