kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Make use of isPlaying feature of ExoPlayer 2.10.5
rodzic
bf353875b0
commit
50b51f931e
|
@ -1194,10 +1194,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();
|
||||
return simpleExoPlayer != null && simpleExoPlayer.isPlaying();
|
||||
}
|
||||
|
||||
@Player.RepeatMode
|
||||
|
|
Ładowanie…
Reference in New Issue