Detect pause/resume in ExoPlayer
问题 I searched two days for this question in github but i can't find true answer . I want example for detecting pause / resume in ExoPlayer > 2.x . Any one can give me an example ? I checked onPlayerStateChanged and problem not solved . onPlayerStateChanged : STATE_BUFFERING onPlayerStateChanged : STATE_READY I just got this log from onPlayerStateChanged and this is not called in all times ! 回答1: You need to check playWhenReady with a Player.EventListener. The Playback states of ExoPlayer are