Skip to content

IllegalStateException sometimes happens when playing Dash streams #70

@oseparovic

Description

@oseparovic

I haven't been able to reproduce this yet but I wanted to let you know there's an uncommon crash floating around in there. From the Play Store console the stacktrace looks like this:

java.lang.IllegalStateException: 
  at net.protyposis.android.mediaplayer.MediaPlayer.prepareAsync (MediaPlayer.java:466)
  at net.protyposis.android.mediaplayer.VideoView$2.run (VideoView.java:210)
  at java.lang.Thread.run (Thread.java:818)

Affected devices so far:

  • Samsung Galaxy J5(2016) (j5xnlte), 2048MB RAM, Android 6.0
  • Google Pixel (sailfish), 4096MB RAM, Android 7.1
  • Samsung Galaxy S8+ (dream2lte), 4096MB RAM, Android 7.0

Currently used lib version are:

compile 'net.protyposis.android.mediaplayer:mediaplayer:4.3.1-rc1'
compile 'net.protyposis.android.mediaplayer:mediaplayer-dash:4.3.0'

From the source it looks like this is what's triggering the exception:

public void prepare() throws IOException, IllegalStateException {
    if(mCurrentState != State.INITIALIZED && mCurrentState != State.STOPPED) {
        throw new IllegalStateException();
    }

Any suggestions how to reproduce this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions