Omar Alesharie Omar Alesharie - 1 year ago 160
Android Question

Exoplayer and ProgressBar

I'm new to Android Studio and ExoPlayer
I started the player to play videos but I don't know to detect if the player is buffering and show a progress bar to notify the user, any help please?

Answer Source

You should implement ExoPlayer.EventListener and override onPlayerStateChanged() to detect state of playing video progress (STATE_IDLE, STATE_BUFFERING, STATE_READY, STATE_ENDED)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download