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

Position is always -1 on Android when using startPlayer with dataBuffer #6

Open
chuot opened this issue Jun 3, 2022 · 0 comments
Open

Comments

@chuot
Copy link

chuot commented Jun 3, 2022

On Android, the MediaPlayer.getDuration() returns -1 if streaming live content. This appears to be the case when using startPlayer with dataBuffer.

This line and this line should also test for duration != -1 so position stay usable later on.

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

1 participant