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, stop
private GSTMedia gstMedia
private float mutedVolume
private boolean muteEnabled
private AudioEqualizer audioEqualizer
private AudioSpectrum audioSpectrum
private GSTMediaPlayer(GSTMedia sourceMedia)
GSTMediaPlayer(Locator source)
public AudioEqualizer getEqualizer()
MediaPlayer
getEqualizer
in interface MediaPlayer
getEqualizer
in class NativeMediaPlayer
public AudioSpectrum getAudioSpectrum()
MediaPlayer
getAudioSpectrum
in interface MediaPlayer
getAudioSpectrum
in class NativeMediaPlayer
public MediaPlayerOverlay getMediaPlayerOverlay()
MediaPlayer
MediaPlayerOverlay
instance.private void throwMediaErrorException(int code, java.lang.String message) throws MediaException
MediaException
protected long playerGetAudioSyncDelay() throws MediaException
playerGetAudioSyncDelay
in class NativeMediaPlayer
MediaException
protected void playerSetAudioSyncDelay(long delay) throws MediaException
playerSetAudioSyncDelay
in class NativeMediaPlayer
MediaException
protected void playerPlay() throws MediaException
playerPlay
in class NativeMediaPlayer
MediaException
protected void playerStop() throws MediaException
playerStop
in class NativeMediaPlayer
MediaException
protected void playerPause() throws MediaException
playerPause
in class NativeMediaPlayer
MediaException
protected void playerFinish() throws MediaException
playerFinish
in class NativeMediaPlayer
MediaException
protected float playerGetRate() throws MediaException
playerGetRate
in class NativeMediaPlayer
MediaException
protected void playerSetRate(float rate) throws MediaException
playerSetRate
in class NativeMediaPlayer
MediaException
protected double playerGetPresentationTime() throws MediaException
playerGetPresentationTime
in class NativeMediaPlayer
MediaException
protected boolean playerGetMute() throws MediaException
playerGetMute
in class NativeMediaPlayer
MediaException
protected void playerSetMute(boolean enable) throws MediaException
playerSetMute
in class NativeMediaPlayer
MediaException
protected float playerGetVolume() throws MediaException
playerGetVolume
in class NativeMediaPlayer
MediaException
protected void playerSetVolume(float volume) throws MediaException
playerSetVolume
in class NativeMediaPlayer
MediaException
protected float playerGetBalance() throws MediaException
playerGetBalance
in class NativeMediaPlayer
MediaException
protected void playerSetBalance(float balance) throws MediaException
playerSetBalance
in class NativeMediaPlayer
MediaException
protected double playerGetDuration() throws MediaException
playerGetDuration
in class NativeMediaPlayer
MediaException
protected void playerSeek(double streamTime) throws MediaException
playerSeek
in class NativeMediaPlayer
MediaException
protected void playerInit() throws MediaException
playerInit
in class NativeMediaPlayer
MediaException
protected void playerDispose()
playerDispose
in class NativeMediaPlayer
private 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)