final class GSTMediaPlayer extends NativeMediaPlayer
NativeMediaPlayer.MediaErrorEvent| Modifier and Type | Field and Description |
|---|---|
private AudioEqualizer |
audioEqualizer |
private AudioSpectrum |
audioSpectrum |
private GSTMedia |
gstMedia |
private float |
mutedVolume |
private boolean |
muteEnabled |
eventPlayerError, eventPlayerFinished, eventPlayerPaused, eventPlayerPlaying, eventPlayerReady, eventPlayerStalled, eventPlayerStopped, eventPlayerUnknown, ONE_SECOND| Modifier | Constructor and Description |
|---|---|
private |
GSTMediaPlayer(GSTMedia sourceMedia) |
(package private) |
GSTMediaPlayer(Locator source) |
| Modifier and Type | Method and Description |
|---|---|
AudioSpectrum |
getAudioSpectrum()
Gets the audio spectrum controller for the player.
|
AudioEqualizer |
getEqualizer()
Gets the master audio equalizer for the player.
|
MediaPlayerOverlay |
getMediaPlayerOverlay()
Returns the media player overlay support interface.
|
private int |
gstFinish(long refNativeMedia) |
private long |
gstGetAudioEqualizer(long refNativeMedia) |
private long |
gstGetAudioSpectrum(long refNativeMedia) |
private int |
gstGetAudioSyncDelay(long refNativeMedia,
long[] syncDelay) |
private int |
gstGetBalance(long refNativeMedia,
float[] balance) |
private int |
gstGetDuration(long refNativeMedia,
double[] duration) |
private int |
gstGetPresentationTime(long refNativeMedia,
double[] time) |
private int |
gstGetRate(long refNativeMedia,
float[] rate) |
private int |
gstGetVolume(long refNativeMedia,
float[] volume) |
private int |
gstInitPlayer(long refNativeMedia) |
private int |
gstPause(long refNativeMedia) |
private int |
gstPlay(long refNativeMedia) |
private int |
gstSeek(long refNativeMedia,
double streamTime) |
private int |
gstSetAudioSyncDelay(long refNativeMedia,
long delay) |
private int |
gstSetBalance(long refNativeMedia,
float balance) |
private int |
gstSetRate(long refNativeMedia,
float rate) |
private int |
gstSetVolume(long refNativeMedia,
float volume) |
private int |
gstStop(long refNativeMedia) |
protected void |
playerDispose() |
protected void |
playerFinish() |
protected long |
playerGetAudioSyncDelay() |
protected float |
playerGetBalance() |
protected double |
playerGetDuration() |
protected boolean |
playerGetMute() |
protected double |
playerGetPresentationTime() |
protected float |
playerGetRate() |
protected float |
playerGetVolume() |
protected void |
playerInit() |
protected void |
playerPause() |
protected void |
playerPlay() |
protected void |
playerSeek(double streamTime) |
protected void |
playerSetAudioSyncDelay(long delay) |
protected void |
playerSetBalance(float balance) |
protected void |
playerSetMute(boolean enable) |
protected void |
playerSetRate(float rate) |
protected void |
playerSetVolume(float volume) |
protected void |
playerStop() |
private void |
throwMediaErrorException(int code,
java.lang.String message) |
addAudioSpectrumListener, addBufferListener, addMarkerListener, addMediaErrorListener, addMediaPlayerListener, addMediaTimeListener, addVideoTrackSizeListener, createNativeAudioEqualizer, createNativeAudioSpectrum, dispose, getAudioSyncDelay, getBalance, getDuration, getMedia, getMute, getPresentationTime, getRate, getStartTime, getState, getStopTime, getVideoRenderControl, getVolume, init, markerStateChanged, pause, play, removeAudioSpectrumListener, removeBufferListener, removeMarkerListener, removeMediaErrorListener, removeMediaPlayerListener, removeMediaTimeListener, removeVideoTrackSizeListener, seek, sendAudioSpectrumEvent, sendAudioTrack, sendBufferProgressEvent, sendDurationUpdateEvent, sendFrameSizeChangedEvent, sendMarkerEvent, sendNewFrameEvent, sendPlayerEvent, sendPlayerHaltEvent, sendPlayerMediaErrorEvent, sendPlayerStateEvent, sendSubtitleTrack, sendVideoTrack, sendWarning, setAudioSyncDelay, setBalance, setMute, setRate, setStartTime, setStopTime, setVolume, stopprivate GSTMedia gstMedia
private float mutedVolume
private boolean muteEnabled
private AudioEqualizer audioEqualizer
private AudioSpectrum audioSpectrum
private GSTMediaPlayer(GSTMedia sourceMedia)
GSTMediaPlayer(Locator source)
public AudioEqualizer getEqualizer()
MediaPlayergetEqualizer in interface MediaPlayergetEqualizer in class NativeMediaPlayerpublic AudioSpectrum getAudioSpectrum()
MediaPlayergetAudioSpectrum in interface MediaPlayergetAudioSpectrum in class NativeMediaPlayerpublic MediaPlayerOverlay getMediaPlayerOverlay()
MediaPlayerMediaPlayerOverlay instance.private void throwMediaErrorException(int code,
java.lang.String message)
throws MediaException
MediaExceptionprotected long playerGetAudioSyncDelay()
throws MediaException
playerGetAudioSyncDelay in class NativeMediaPlayerMediaExceptionprotected void playerSetAudioSyncDelay(long delay)
throws MediaException
playerSetAudioSyncDelay in class NativeMediaPlayerMediaExceptionprotected void playerPlay()
throws MediaException
playerPlay in class NativeMediaPlayerMediaExceptionprotected void playerStop()
throws MediaException
playerStop in class NativeMediaPlayerMediaExceptionprotected void playerPause()
throws MediaException
playerPause in class NativeMediaPlayerMediaExceptionprotected void playerFinish()
throws MediaException
playerFinish in class NativeMediaPlayerMediaExceptionprotected float playerGetRate()
throws MediaException
playerGetRate in class NativeMediaPlayerMediaExceptionprotected void playerSetRate(float rate)
throws MediaException
playerSetRate in class NativeMediaPlayerMediaExceptionprotected double playerGetPresentationTime()
throws MediaException
playerGetPresentationTime in class NativeMediaPlayerMediaExceptionprotected boolean playerGetMute()
throws MediaException
playerGetMute in class NativeMediaPlayerMediaExceptionprotected void playerSetMute(boolean enable)
throws MediaException
playerSetMute in class NativeMediaPlayerMediaExceptionprotected float playerGetVolume()
throws MediaException
playerGetVolume in class NativeMediaPlayerMediaExceptionprotected void playerSetVolume(float volume)
throws MediaException
playerSetVolume in class NativeMediaPlayerMediaExceptionprotected float playerGetBalance()
throws MediaException
playerGetBalance in class NativeMediaPlayerMediaExceptionprotected void playerSetBalance(float balance)
throws MediaException
playerSetBalance in class NativeMediaPlayerMediaExceptionprotected double playerGetDuration()
throws MediaException
playerGetDuration in class NativeMediaPlayerMediaExceptionprotected void playerSeek(double streamTime)
throws MediaException
playerSeek in class NativeMediaPlayerMediaExceptionprotected void playerInit()
throws MediaException
playerInit in class NativeMediaPlayerMediaExceptionprotected void playerDispose()
playerDispose in class NativeMediaPlayerprivate int gstInitPlayer(long refNativeMedia)
private long gstGetAudioEqualizer(long refNativeMedia)
private long gstGetAudioSpectrum(long refNativeMedia)
private int gstGetAudioSyncDelay(long refNativeMedia,
long[] syncDelay)
private int gstSetAudioSyncDelay(long refNativeMedia,
long delay)
private int gstPlay(long refNativeMedia)
private int gstPause(long refNativeMedia)
private int gstStop(long refNativeMedia)
private int gstFinish(long refNativeMedia)
private int gstGetRate(long refNativeMedia,
float[] rate)
private int gstSetRate(long refNativeMedia,
float rate)
private int gstGetPresentationTime(long refNativeMedia,
double[] time)
private int gstGetVolume(long refNativeMedia,
float[] volume)
private int gstSetVolume(long refNativeMedia,
float volume)
private int gstGetBalance(long refNativeMedia,
float[] balance)
private int gstSetBalance(long refNativeMedia,
float balance)
private int gstGetDuration(long refNativeMedia,
double[] duration)
private int gstSeek(long refNativeMedia,
double streamTime)