Fix NPE for issue #1901
This commit is contained in:
parent
fba0a8036b
commit
7b5ba3bdc2
|
@ -1106,6 +1106,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();
|
||||
|
|
Loading…
Reference in New Issue