public final class IOSMediaPlayer extends NativeMediaPlayer
Modifier and Type | Class and Description |
---|---|
private class |
IOSMediaPlayer.MediaPlayerOverlayImpl |
private static class |
IOSMediaPlayer.NullAudioEQ |
private static class |
IOSMediaPlayer.NullAudioSpectrum |
private static class |
IOSMediaPlayer.NullEQBand |
NativeMediaPlayer.MediaErrorEvent
Modifier and Type | Field and Description |
---|---|
private IOSMediaPlayer.NullAudioEQ |
audioEqualizer |
private IOSMediaPlayer.NullAudioSpectrum |
audioSpectrum |
private IOSMedia |
iosMedia |
private MediaPlayerOverlay |
mediaPlayerOverlay |
private float |
mutedVolume |
private boolean |
muteEnabled |
eventPlayerError, eventPlayerFinished, eventPlayerPaused, eventPlayerPlaying, eventPlayerReady, eventPlayerStalled, eventPlayerStopped, eventPlayerUnknown, ONE_SECOND
Modifier | Constructor and Description |
---|---|
private |
IOSMediaPlayer(IOSMedia sourceMedia) |
(package private) |
IOSMediaPlayer(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 void |
handleError(int err) |
private void |
iosDispose(long refNativeMedia) |
private int |
iosFinish(long refNativeMedia) |
private int |
iosGetAudioSyncDelay(long refNativeMedia,
long[] syncDelay) |
private int |
iosGetBalance(long refNativeMedia,
float[] balance) |
private int |
iosGetDuration(long refNativeMedia,
double[] duration) |
private int |
iosGetPresentationTime(long refNativeMedia,
double[] time) |
private int |
iosGetRate(long refNativeMedia,
float[] rate) |
private int |
iosGetVolume(long refNativeMedia,
float[] volume) |
private int |
iosInitPlayer(long refNativeMedia) |
private int |
iosPause(long refNativeMedia) |
private int |
iosPlay(long refNativeMedia) |
private int |
iosSeek(long refNativeMedia,
double streamTime) |
private int |
iosSetAudioSyncDelay(long refNativeMedia,
long delay) |
private int |
iosSetBalance(long refNativeMedia,
float balance) |
private int |
iosSetOverlayHeight(long mediaRef,
double height) |
private int |
iosSetOverlayOpacity(long mediaRef,
double opacity) |
private int |
iosSetOverlayPreserveRatio(long mediaRef,
boolean preserveRatio) |
private int |
iosSetOverlayTransform(long mediaRef,
double mxx,
double mxy,
double mxz,
double mxt,
double myx,
double myy,
double myz,
double myt,
double mzx,
double mzy,
double mzz,
double mzt) |
private int |
iosSetOverlayVisible(long mediaRef,
boolean visible) |
private int |
iosSetOverlayWidth(long mediaRef,
double width) |
private int |
iosSetOverlayX(long mediaRef,
double x) |
private int |
iosSetOverlayY(long mediaRef,
double y) |
private int |
iosSetRate(long refNativeMedia,
float rate) |
private int |
iosSetVolume(long refNativeMedia,
float volume) |
private int |
iosStop(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() |
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 IOSMedia iosMedia
private final IOSMediaPlayer.NullAudioEQ audioEqualizer
private final IOSMediaPlayer.NullAudioSpectrum audioSpectrum
private final MediaPlayerOverlay mediaPlayerOverlay
private float mutedVolume
private boolean muteEnabled
private IOSMediaPlayer(IOSMedia sourceMedia)
IOSMediaPlayer(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 handleError(int err) 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 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 playerFinish() throws MediaException
playerFinish
in class NativeMediaPlayer
MediaException
protected void playerDispose()
playerDispose
in class NativeMediaPlayer
private int iosInitPlayer(long refNativeMedia)
private int iosGetAudioSyncDelay(long refNativeMedia, long[] syncDelay)
private int iosSetAudioSyncDelay(long refNativeMedia, long delay)
private int iosPlay(long refNativeMedia)
private int iosPause(long refNativeMedia)
private int iosStop(long refNativeMedia)
private int iosGetRate(long refNativeMedia, float[] rate)
private int iosSetRate(long refNativeMedia, float rate)
private int iosGetPresentationTime(long refNativeMedia, double[] time)
private int iosGetVolume(long refNativeMedia, float[] volume)
private int iosSetVolume(long refNativeMedia, float volume)
private int iosGetBalance(long refNativeMedia, float[] balance)
private int iosSetBalance(long refNativeMedia, float balance)
private int iosGetDuration(long refNativeMedia, double[] duration)
private int iosSeek(long refNativeMedia, double streamTime)
private void iosDispose(long refNativeMedia)
private int iosFinish(long refNativeMedia)
private int iosSetOverlayX(long mediaRef, double x)
private int iosSetOverlayY(long mediaRef, double y)
private int iosSetOverlayVisible(long mediaRef, boolean visible)
private int iosSetOverlayWidth(long mediaRef, double width)
private int iosSetOverlayHeight(long mediaRef, double height)
private int iosSetOverlayPreserveRatio(long mediaRef, boolean preserveRatio)
private int iosSetOverlayOpacity(long mediaRef, double opacity)
private int iosSetOverlayTransform(long mediaRef, double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)