title: How to avoid MediaPlayer's starting black screen?
body: <p>So in my app MediaPlayer is based on SurfaceView by extending like:</p>
  
  <pre><code>public class VideoView extends SurfaceView  {}
  </code></pre>
  
  <p>now, it uses MediaPlayer inside and what I want to achieve is to make starting color of screen white instead of black. VideoView is placed in white-backgrounded-layout by itself. It is white but atm it starts playing video the VideoView becomes black for a second. Video by itself has white background and its first frames are not black so I assume that its about MediaPlayer. When it starts playing it turns screen black by default. I had guessed that I could use transition like:</p>
  
  <pre><code>TransitionDrawable transition = new TransitionDrawable(new Drawable[]{new ColorDrawable(Color.WHITE), new ColorDrawable(Color.TRANSPARENT)});
  
  if(Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.JELLY_BEAN)
      this.setBackgroundDrawable(transition);
  else
      this.setBackground(transition);
  
  transition.setCrossFadeEnabled(true);
  transition.startTransition(1000);
  </code></pre>
  
  <p>However this doesn't help much. So is there a way to achieve my goal?<br>
  Forgot to mention that its local video file (from SD card) is being played. So black screen is not about a long HTTP-session establishing or other stream related things. And preparation is done via <code>prepareAsync();</code></p>