Merge branch 'dev' into giga-postprocessing

This commit is contained in:
Christian Schabesberger 2018-12-01 09:30:38 +01:00 committed by GitHub
commit feb8c27f1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();