java.lang.IllegalArgumentException: The surface has been released

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    MediaPlayer.create() sometimes return null

    Stack Overflow | 7 months ago | Peter Barbanyaga
    java.lang.IllegalArgumentException: The surface has been released

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The surface has been released

      at android.media.MediaPlayer._setVideoSurface()
    2. Android Platform
      MediaPlayer.create
      1. android.media.MediaPlayer._setVideoSurface(Native Method)
      2. android.media.MediaPlayer.setDisplay(MediaPlayer.java:731)
      3. android.media.MediaPlayer.create(MediaPlayer.java:882)
      3 frames