title: Applying TextureView to MediaPlayer after MediaPlayer.prepare causes black screen
body: <p>I'd like to switch the video method in <code>MediaPlayer</code> to <code>TextureView</code>'s <code>Surface</code> at some point during playback. But all I get is a black screen (the sound is playing). I made sure the size of the <code>TextureView</code> is ok, so it's not the case. </p>
  
  <p>If I set the <code>Surface</code> of <code>TextureView</code> <strong>before</strong> calling <code>prepare</code> on <code>MediaPlayer</code>, than the video is shown.</p>
  
  <p>So it seems that the order of calling <code>prepare</code> and applying the surface is crucial.</p>
  
  <p>What's interesting, in case of <code>SurfaceView</code> everything works fine (no matter when I set the holder of <code>SurfaceView</code>: before or after the preparing is done).</p>
  
  <p>Is there a way to set TextureView to MediaPlayer during playback? Calling <code>MediaPlayer.release()</code> and recreating it again while having to take care of progress would be very inconvenient.</p>