-
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
Live audio streams stop suddenly (player stuck in buffering state) #1285
Comments
Can anybody help with this issue? |
Hi, I'm experiencing this issue also with Samsung Galaxy S6, but I didn't post any result because I don't have access to the device yet. But @ojw28 the issue that you are referencing is for Android 4.1.2 and the issue happen in 5.1.1 so the patch will not correct the error, don't you? |
I'm not referencing that issue. I referenced this issue from that issue (i.e. the other way around ;)). @atul14 - Things would be less confusing if you didn't cross-post the same thing in multiple places. Thanks! Regarding this issue - We'll take a look when we have a chance, although any additional debugging work you can do to resolve the issue directly would be much appreciated. |
Hahaha my bad! |
@ojw28 Thanks for your revert on the issue. Will follow this thread only. I will try to find out some additional info as much is possible. Meanwhile, in case you need any other info from Logcat etc, will be glad to provide. Thanks.. Meanwhile, @isidoroDigio also got reports on this issue from Samsung Galaxy S6, S6 Edge and Edge + So, primarily with Samsung devices. |
I could reproduce the issue on a Nexus 5X. I'm not convinced that this isn't just a serving issue. The stream provided above quite often returns a 400 response code rather than a valid response, so the server seems pretty flaky. How certain are you that this isn't simply a connectivity issue (hence transitioning into the buffering state whilst the client attempts to recover the connection, followed by idle in the case that recovery wasn't possible)? |
Hi @ojw28 Thanks for the observation Here is one more stream showing the same behavior - http://192.69.212.61:8020/live. Just to rule out serving/network issue, I attempted to play the same stream at the same time(on the same Network) - one on the Samsung phone and other on the other player on my desktop(VLC) The phone showed again the same behavior(almost after 15 minutes stream stopped), while VLC continued to work fine. |
Hello @ojw28 Did you get a chance to look into this? Will be glad to provide any more details that could help investigation. |
Hi @ojw28 I saw your comment on #398 , Although couldn't reproduce the issue with the link mentioned, I could do that with the other link that I have. Also captured the adb bugreport. Here is the dropbox link for that
|
I don't think the "Discontinuity Detected" log messages are relevant to this issue. Instead, I think the issue occurs when the client's connection to the server is broken. ExoPlayer tries to recover, and one of two things happens:
I think the second possibility is what you're seeing. If it is, you can work around the issue by ensuring that you always pass 0 as the third argument to |
By the way, the issue isn't device specific. It can be reproduced across all devices fairly easily as follows:
|
Thanks @ojw28, will test the suggested solution and confirm |
Hi @ojw28 tried the recommended solution, works well. Now the stream recovers automatically, though I experience a minor slutter of 2-3 seconds. Here is what I see in logcat now(and the audio restarts) - 02-26 06:12:56.718 30776-32211/com.test E/AudioTrack: Discontinuity detected [expected 347432789, got 346489886] I guess, for now it's good to go. Thanks for that !! Do keep us posted on progress if there's a better fix ! Just a side note, don't know I was experiencing this issue more with Samsung devices, rather than other ones I tried(Lenovo, Nexus etc) Thanks again. |
HI @ojw28 After applying the fix and update, we are still getting reports regarding the issue from our live users in the Play Store. Basically the issue seems to be related to buffering and recovery in case of low bandwidth networks or poor streams. The audio continuously slutters at times Is there a plan soon to prioritize a fix for this? Thanks |
Continuous stuttering will occur with the workaround in place specifically when there is insufficient bandwidth between the server and device. This is because the workaround is to set Once a "proper" fix is in place it will no longer be necessary to set |
- Code is simpler. We only ever reset all tracks. - Allows the standalone media clock to be updated properly. This allows simpler recovery for live streams in ExtractorSampleSource. - Fixes #1285 and paves the way for a fix for #758. Issue: #1285 Issue: #758 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=120530682
This issue is fixed properly in the |
Hi,
Am trying to play audio streams using ExoPlayer(sample application). Have observed an issue that the streams suddenly stop playing after some time, and in the logcat I can see the logs like this -
E/AudioTrack: Discontinuity detected [expected 158217189, got 157209116]
Few more observations to help pin point the diagnosis -
a. Samsung Galaxy J2, Android Version 5.1.1
b. Samsung Galaxy S4, Android Version 5.0.1
a. http://67.212.165.106:8191
Please help with the issue resolution.
The text was updated successfully, but these errors were encountered: