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?


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

Answered By – Louis Nguyen

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published