Additional top-level class in compilation unit: MediaPulseTask.
MediaPlayer.
| Modifier and Type | Class and Description |
|---|---|
| private class | NativeMediaPlayer.
Thread for media player event processing. |
| private static class | NativeMediaPlayer.
Event to be posted to any registered |
| public static class | NativeMediaPlayer.
Event to be posted to any registered (@link MediaErrorListener)s |
| private static class | |
| private static class | NativeMediaPlayer.
Event to be posted to any registered |
| private class | NativeMediaPlayer.
Helper class which managers |
| private static class | NativeMediaPlayer.
Event to be posted to any registered |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List | |
| private final List | |
| private final List | |
| private final List | |
| private boolean | |
| private double | |
| private final Lock | |
| private double | |
| private final List | |
| private NativeMediaPlayer. | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private double | |
| private NewFrameEvent | |
| private final Object | |
| private double | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private final AtomicBoolean | |
| private boolean | |
| private boolean | |
| private final List | |
| private final Lock | |
| private double | |
| private NativeMedia | media
The
|
| private final Lock | |
| private Timer | |
| private static final int | |
| private long | |
| private Runnable | |
| public static final long | |
| private PlayerStateEvent. | |
| private final List | |
| private final List | |
| private double | |
| private double | |
| private boolean | |
| private double | |
| private double | |
| private double | |
| private double | |
| private final List | |
| private VideoRenderControl | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | NativeMediaPlayer(NativeMedia
Media object clip)Construct a NativeMediaPlayer for the referenced clip. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAudioSpectrumListener(AudioSpectrumListener listener)
Implements com. Adds a listener for audio spectrum events. |
| public void | addBufferListener(BufferListener listener)
Implements com. Adds a listener for all buffer events. |
| public void | addMarkerListener(MarkerListener listener)
Implements com. Adds a listener for marker events. |
| public void | addMediaErrorListener(MediaErrorListener listener)
Implements com. Adds a listener for warnings which occur within the lifespan of the player. |
| public void | addMediaPlayerListener(PlayerStateListener listener)
Implements com. Adds a listener for media state. |
| public void | addMediaTimeListener(PlayerTimeListener listener)
Implements com. Adds a listener for player time events. |
| public void | addVideoTrackSizeListener(VideoTrackSizeListener listener)
Implements com. Adds a listener for video track frame dimensions. |
| private void | |
| protected AudioEqualizer | |
| protected AudioSpectrum | |
| private void | |
| public final void | dispose()
Implements com. Release any resources held by this player. |
| pack-priv boolean | |
| public abstract AudioSpectrum | getAudioSpectrum()
Redeclares com. Gets the audio spectrum controller for the player. |
| public long | getAudioSyncDelay()
Implements com. Retrieve the audio rendering delay. |
| public float | |
| public double | getDuration()
Implements com. Gets the duration in seconds. |
| public abstract AudioEqualizer | getEqualizer()
Redeclares com. Gets the audio equalizer for the player. |
| public Media | |
| public boolean | |
| public double | getPresentationTime()
Implements com. Gets the current presentation time. |
| public float | |
| public double | getStartTime()
Implements com. Gets the time within the duration of the media to start playing. |
| public PlayerStateEvent. | Returns: the current player state.Implements com. Retrieves the current |
| public double | getStopTime()
Implements com. Gets the time within the duration of the media to stop playing. |
| public VideoRenderControl | getVideoRenderControl()
Implements com. Returns the video rendering support interface. |
| public float | |
| protected void | init()
Initialization method which must be called after construction to initialize the internal state of the player. |
| public boolean | isErrorEventCached()
Implements com. Returns true if we have cached error event. |
| public void | markerStateChanged(boolean hasMarkers)
Implements com.
|
| private synchronized void | |
| public void | |
| public void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract long | |
| protected abstract float | |
| protected abstract double | |
| protected abstract boolean | |
| protected abstract double | |
| protected abstract float | |
| protected abstract float | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| public void | removeAudioSpectrumListener(AudioSpectrumListener listener)
Implements com. Removes a listener for audio spectrum events. |
| public void | removeBufferListener(BufferListener listener)
Implements com. Removes a listener for buffer events. |
| public void | removeMarkerListener(MarkerListener listener)
Implements com. Removes a listener for marker events. |
| public void | removeMediaErrorListener(MediaErrorListener listener)
Implements com. Removes a listener for warnings. |
| public void | removeMediaPlayerListener(PlayerStateListener listener)
Implements com. Removes a listener for media state. |
| public void | removeMediaTimeListener(PlayerTimeListener listener)
Implements com. Removes a listener for player time events. |
| public void | removeVideoTrackSizeListener(VideoTrackSizeListener listener)
Implements com. Removes a listener for video track frame dimensions. |
| public void | seek(double streamTime)
Implements com. Seeks playback to the specified time. |
| protected void | |
| protected void | sendAudioTrack(boolean enabled, long trackID, String name, int encoding, String language, int numChannels, int channelMask, float sampleRate)
|
| protected void | sendBufferProgressEvent(double clipDuration, long bufferStart, long bufferStop, long bufferPosition)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | sendVideoTrack(boolean enabled, long trackID, String name, int encoding, int width, int height, float frameRate, boolean hasAlphaChannel)
|
| protected void | |
| public void | setAudioSyncDelay(long delay)
Implements com. Set the amount of time to delay the audio. |
| public void | |
| public void | |
| pack-priv void | setOnDispose(Runnable
object on which to invoke onDispose)Runnable#run() in
dispose().Set a callback to invoke when the player is disposed. |
| public void | setRate(float rate)
Implements com. Sets the rate of playback. |
| public void | setStartTime(double startTime)
Implements com. Sets the start time within the media to play. |
| public void | setStopTime(double stopTime)
Implements com. Sets the stop time within the media to stop playback. |
| public void | |
| public void | stop()
Implements com. Stops playing of the media and resets the play time to 0. |