Skip to content
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 Stream STOPPED without finishing in some devices, like MI Note 6, Samung A10, A30, without any error #484

Closed
jangidakhilesh opened this issue Apr 5, 2020 · 12 comments

Comments

@jangidakhilesh
Copy link

Audio Stream STOPPED without finishing in some devices, like MI Note 6, Samung A10, A30, without any error

@jangidakhilesh
Copy link
Author

got this info error:

MediaPlayer: info/warning (703, 22304)

@handofthecode
Copy link

Same issue here.

@arodriguezgb
Copy link

I am also having this issue. Pixel 4 XL, Galaxy S9.

When the app is in the background on Android the stream stops at about 10-14 minutes.

@jangidakhilesh
Copy link
Author

Is there anyone who can help out from this issue ?

@MardariG
Copy link

I thought the problem was with this library, but actually it was caused by other package whitch listened for network change, and when device entered sleep mode it triggers offline (it's a bug). Just try to comment player stop() function, and see if it will actually stop then.

@DenisPushkarev
Copy link

@jangidakhilesh is it happening when app in background mode?

@peleteiro-dev
Copy link

peleteiro-dev commented May 6, 2020

Same issue on Galaxy S7/8/10, Huawei P20 Pro and LG G6 at least ...
Streaming stops randomly, sometimes in minutes, sometimes takes hours to happen.
I've seen this error in the console several times:

W/MediaHTTPConnection(23268): readAt 40566617 / 32768 => java.net.ProtocolException

from the audio server side, I can see the device connecting and disconnecting until it stops playing.
This only happens on streaming.

@peleteiro-dev
Copy link

does anybody have a solution for this, please ?

@timoknapp
Copy link

timoknapp commented Nov 6, 2020

I also the exact same problem, when playing streams longer than 40 minutes. Basically right after 40 minutes it stops playing with a similar error like @peleteiro-dev described:

W/MediaHTTPConnection( 3979): readAt 36823797 / 7435 => java.net.ProtocolException: unexpected end of stream
E/MediaPlayerNative( 3979): error (1, -1010)
E/MediaPlayer( 3979): Error (1,-1010)
E/MediaPlayerNative( 3979): stop called in state 0, mPlayer(0xd0464980)
E/MediaPlayerNative( 3979): error (-38, 0)
V/MediaPlayer( 3979): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 3979): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer( 3979): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 3979): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaHTTPService( 3979): MediaHTTPService(android.media.MediaHTTPService@b2d3644): Cookies: null
V/MediaHTTPService( 3979): makeHTTPConnection: CookieHandler (java.net.CookieManager@bd7a014) exists.
V/MediaHTTPService( 3979): makeHTTPConnection(android.media.MediaHTTPService@b2d3644): cookieHandler: java.net.CookieManager@bd7a014 Cookies: null
V/MediaPlayer( 3979): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 3979): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaHTTPService( 3979): MediaHTTPService(android.media.MediaHTTPService@b144062): Cookies: null
V/MediaHTTPService( 3979): makeHTTPConnection: CookieHandler (java.net.CookieManager@bd7a014) exists.
V/MediaHTTPService( 3979): makeHTTPConnection(android.media.MediaHTTPService@b144062): cookieHandler: java.net.CookieManager@bd7a014 Cookies: null

Furthermore I do not see that this problem relates to the #518 or #519 at all.

@rvachev
Copy link

rvachev commented Nov 15, 2020

guys, help me please. Audio stream stops when I scroll down and audio player is over screen height. Do you have any solutions?

@vincepunkrock
Copy link

guys, help me please. Audio stream stops when I scroll down and audio player is over screen height. Do you have any solutions?

Are you using a ListView.builder? Your widget might be destroyed when you scroll it out of view.

@erickzanardo
Copy link
Member

There isn't enough information on this issue for us to act on. Please edit this, or open a new one and please follow the issue template.

Feel free to comment here and we can re open this eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants