public class MediaEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
masterIsDown |
boolean |
masterIsReady |
long |
masterSampleTime |
long |
masterSampleTimestamp |
static int |
MEDIA_STATE_PAUSED |
static int |
MEDIA_STATE_PLAYING |
Surface |
surface |
Constructor and Description |
---|
MediaEngine(MediaCodecHelper parent,
Surface surfaceParam) |
Modifier and Type | Method and Description |
---|---|
void |
clearBuffers() |
void |
enqueueBuffer(MediaBuffer buffer) |
int |
getBufferCount() |
java.lang.String |
getCurrentSegmentURL() |
int |
getMediaState() |
boolean |
isRebuffering() |
int |
onAudioPropertiesChange(int channels,
int sampleRate,
int bitRate) |
int |
onEndBuffering() |
int |
onPlaybackFinished() |
int |
onStartBuffering() |
int |
onVideoPropertiesChange(int width,
int height,
int frameRate,
int bitRate) |
void |
setMediaState(int state) |
void |
start() |
void |
terminate() |
public static int MEDIA_STATE_PAUSED
public static int MEDIA_STATE_PLAYING
public long masterSampleTime
public long masterSampleTimestamp
public boolean masterIsDown
public boolean masterIsReady
public Surface surface
public MediaEngine(MediaCodecHelper parent, Surface surfaceParam)
public void start()
public void enqueueBuffer(MediaBuffer buffer)
public int getBufferCount()
public void clearBuffers()
public java.lang.String getCurrentSegmentURL()
public int getMediaState()
public void setMediaState(int state)
public boolean isRebuffering()
public void terminate()
public int onVideoPropertiesChange(int width, int height, int frameRate, int bitRate)
public int onAudioPropertiesChange(int channels, int sampleRate, int bitRate)
public int onStartBuffering()
public int onEndBuffering()
public int onPlaybackFinished()