-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio State Issues #1024
Comments
Does this reproduce in the demo app? Could you specify which stream this occurs with, and how to reproduce (e.g. is going into airplane mode during playback sufficient)? Thanks! |
Yes this occurs in the demo, since I was testing before incorporating to my project. This occurs with any icecast, shoutcast live steams. For example turning off wifi or simple pause the audio from player control. The stream will stop, and the state will change. Only playWhenReady will update but not playBackState. This will always be ready. if I release the player, then called again preparePlayer, the playBackState will update properly |
I tried this in the demo app with a Shoutcast stream and the state transitioned to idle fine for me. This was using the current master branch. Note that transition takes about 5 seconds to occur, whilst a few retries are made to see if the playback can recover. Please provide more specific reproduction steps (i.e. exactly what stream you're testing with, what version of ExoPlayer + its demo app you're able to reproduce the issue with etc). |
This is happening with Demo: Now when I pause/stop the audio: player.getPlayerControl().pause() The state changes to: Now when I called the function: releasePlayer() yo stop the audio I get the following error. At this time, onStateChanged function does not get called. 12-06 15:50:57.317 14196-31505/com.google.android.exoplayer.demo W/MessageQueue: Handler (com.google.android.exoplayer.upstream.Loader$LoadTask) {fb132f5} sending message to a Handler on a dead thread |
So I think everything is fine here? |
I see now. Thanks for your help. Great library. Is there a way to get the metadata from icecast and shoutcast stream? |
We do not support that, no. Sorry! |
This library works perfectly, it plays shoutcast and icecast streams. It also plays HLS audio. The problem is that the state does not update for example from ready to idle. If I start the player for the first time the state changes accordingly, however if I get disconnected from the Internet while listening music the state does not change. Still displays "ready". Device used: Nexus 6 - 6.0
Great library!
The text was updated successfully, but these errors were encountered: