public class PlayerStates
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
int |
playerState |
static int |
PLAYING |
static int |
READY_TO_PLAY
Playing state which can either be stopped, playing, or reading the header before playing
|
static int |
STOPPED |
构造器和说明 |
---|
PlayerStates() |
限定符和类型 | 方法和说明 |
---|---|
int |
get() |
boolean |
isPlaying()
Checks whether the com.yunos.tv.karaoke.player is currently playing (phase 3)
|
boolean |
isReadyToPlay()
Checks whether the com.yunos.tv.karaoke.player is ready to play, this is the state used also for Pause (phase 2)
|
boolean |
isStopped()
Checks whether the com.yunos.tv.karaoke.player is currently stopped (not playing)
|
void |
set(int state) |
public static final int READY_TO_PLAY
public static final int PLAYING
public static final int STOPPED
public int playerState
public int get()
public void set(int state)
public boolean isReadyToPlay()
true
if ready, false
otherwisepublic boolean isPlaying()
true
if playing, false
otherwisepublic boolean isStopped()
true
if playing, false
otherwise