Android MediaPlayer error codes?

后端 未结 3 819
失恋的感觉
失恋的感觉 2020-12-24 03:18

I am struggling with getting a live radio stream to work on android. I am using the MediaPlayer class and just setting the URL and playing it. It works great

相关标签:
3条回答
  • 2020-12-24 03:33

    Maybe RDS data ? Do you set your buffer size manually ?

    0 讨论(0)
  • 2020-12-24 03:46

    My question is, what do the error codes (1, 26) mean?

    • 26 means PVMFInfoErrorHandlingStart, just an error indication

    The error is -11, which means PVMFErrTimeout. You can check out the definition files here link text

    0 讨论(0)
  • 2020-12-24 03:55

    To start the playback, start() must be called. After start() returns successfully, the MediaPlayer object is in the Started state. isPlaying() can be called to test whether the MediaPlayer object is in the Started state.

    While in the Started state, the internal player engine calls a user supplied OnBufferingUpdateListener.onBufferingUpdate() callback method if a OnBufferingUpdateListener has been registered beforehand via setOnBufferingUpdateListener(OnBufferingUpdateListener). This callback allows applications to keep track of the buffering status while streaming audio/video.

    Calling start() has not effect on a MediaPlayer object that is already in the Started state.

    Maybe it a part of the response.

    0 讨论(0)
提交回复
热议问题