1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-25 20:37:40 +00:00

Merge branch 'dev' into giga-postprocessing

This commit is contained in:
Christian Schabesberger
2018-12-01 09:30:38 +01:00
committed by GitHub
2 changed files with 33 additions and 12 deletions

View File

@@ -1134,6 +1134,7 @@ public abstract class BasePlayer implements
}
public boolean isPlaying() {
if (simpleExoPlayer == null) return false;
final int state = simpleExoPlayer.getPlaybackState();
return (state == Player.STATE_READY || state == Player.STATE_BUFFERING)
&& simpleExoPlayer.getPlayWhenReady();