public class KPlayer
extends java.lang.Object
implements java.lang.Runnable
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
LOG_TAG |
构造器和说明 |
---|
KPlayer() |
KPlayer(PlayerEvents events) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
isLive()
For live streams, duration is 0
|
static java.lang.String |
listCodecs() |
void |
pause() |
void |
play() |
void |
run() |
void |
seek(int percent) |
void |
seek(long pos) |
void |
setDataSource(Context context,
int resid) |
void |
setDataSource(java.lang.String src)
set the data source, a file path or an url, or a file descriptor, to play encoded com.yunos.tv.karaoke.audio from
|
void |
setEventsListener(PlayerEvents events) |
void |
stop() |
void |
syncNotify()
Call notify to control the PAUSE (waiting) state, when the state is changed
|
void |
waitPlay()
A pause mechanism that would block current thread when pause flag is set (READY_TO_PLAY)
|
public final java.lang.String LOG_TAG
public KPlayer()
public KPlayer(PlayerEvents events)
public void setEventsListener(PlayerEvents events)
public boolean isLive()
public void setDataSource(java.lang.String src)
public void setDataSource(Context context, int resid)
public void play()
public void syncNotify()
public void stop()
public void pause()
public void seek(long pos)
public void seek(int percent)
public void waitPlay()
public void run()
run
在接口中 java.lang.Runnable
public static java.lang.String listCodecs()