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

onBufferingUpdate(MediaPlayer mp, int percent) always 100% #88

Closed
IHiroXI opened this issue Jan 13, 2018 · 3 comments
Closed

onBufferingUpdate(MediaPlayer mp, int percent) always 100% #88

IHiroXI opened this issue Jan 13, 2018 · 3 comments

Comments

@IHiroXI
Copy link

IHiroXI commented Jan 13, 2018

onBufferingUpdate(MediaPlayer mp, int percent)
always returning 100 percent with http stream or does not return at all, its ok?
how i can take buffering position for seekTo() use?
getBufferPercentage() returned 2147483647

@protyposis
Copy link
Owner

There is a bug in the buffer percentage calculation introduced in 4.3.3 (getInputSamplePTS() is used for buffer calculation even when it returns PTS_UNKNOWN/-1). Will be fixed in the next release.

I have no idea how you see the buffer position connected to seekTo. Anyway, it's not related to the percentage calculation bug so please open a new issue with a better description.

@IHiroXI
Copy link
Author

IHiroXI commented Jan 17, 2018

thanks for fix.

im using seekTo with seekBar for seeking on the track. if im listening from sdcard then full track available always, but if listening from http stream i have no way to know how many are currently loaded.

protyposis added a commit that referenced this issue Jan 30, 2018
@protyposis
Copy link
Owner

Fix has been released with v4.4.0

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

2 participants