Detect pause/resume in ExoPlayer

EDIT— Please refer to the Player.isPlaying() method which provides this as an API. “Rather than having to check these properties individually, Player.isPlaying can be called.” https://exoplayer.dev/listening-to-player-events.html#playback-state-changes — EDIT END You need to check playWhenReady with a Player.EventListener. The Playback states of ExoPlayer are independent from the player being paused or not: player.addListener(new Player.DefaultEventListener() { @Override … Read more

pause vs stop in docker

The docker pause command suspends all processes in the specified containers. On Linux, this uses the cgroups freezer. Traditionally, when suspending a process the SIGSTOP signal is used, which is observable by the process being suspended https://docs.docker.com/engine/reference/commandline/pause/ The docker stop command. The main process inside the container will receive SIGTERM, and after a grace period, … Read more