title: Why ExoPlayer in Android OS-10 shows black preview screen while preview
body: <p>I am Recording the video in Landscape mode and showing the preview in portrait mode using Exoplayer while record the video continuously at the time change the orientation vice versa Once in while player preview showing a blank screen. 
   I am using Exoplayer 2.9.6  as a dependency on Gradle and using android OS version 10. </p>
  
  <blockquote>
    <p>E/BufferQueueProducer: [SurfaceTexture-0-22659-29]
    setMaxDequeuedBufferCount: requested buffer count 2 is less than
    minimum 3 </p>
    
    <p>E/Surface: IGraphicBufferProducer::setBufferCount(2)
    returned Invalid argument E/ACodec: native_window_set_buffer_count
    failed: Invalid argument (22)</p>
    
    <p>E/ExoPlayerImplInternal: Internal
    runtime error.
        java.lang.IllegalArgumentException
            at android.media.MediaCodec.native_setSurface(Native Method)
            at android.media.MediaCodec.setOutputSurface(MediaCodec.java:2042)
            at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:1014)
            at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setSurface(MediaCodecVideoRenderer.java:422)
            at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:387)
            at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:864)
            at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:835)
            at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:817)
            at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:330)
            at android.os.Handler.dispatchMessage(Handler.java:103)
            at android.os.Looper.loop(Looper.java:237)
            at android.os.HandlerThread.run(HandlerThread.java:67)</p>
  </blockquote>