MediaManager, MediaRecorder
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | addMediaErrorListener(MediaErrorListener
The warning listener. listener)Adds a listener for warnings which occur within the lifespan of the player. |
| public void | |
| public void | |
| public void | addVideoTrackSizeListener(VideoTrackSizeListener listener)
Adds a listener for video track frame dimensions. |
| public void | |
| public AudioSpectrum | |
| public long | |
| public float | |
| public double | |
| public AudioEqualizer | |
| public Media | |
| public MediaPlayerOverlay | Returns: AMediaPlayerOverlay instance.Returns the media player overlay support interface. |
| public boolean | |
| public double | |
| public float | |
| public double | |
| public PlayerStateEvent. | |
| public double | |
| public VideoRenderControl | Returns: AVideoRenderControl instance.Returns the video rendering support interface. |
| public float | |
| public boolean | |
| public void | |
| public void | |
| public void | removeAudioSpectrumListener(AudioSpectrumListener listener)
Removes a listener for audio spectrum events. |
| public void | |
| public void | |
| public void | removeMediaErrorListener(MediaErrorListener
The warning listener. listener)Removes a listener for warnings. |
| public void | |
| public void | |
| public void | removeVideoTrackSizeListener(VideoTrackSizeListener listener)
Removes a listener for video track frame dimensions. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| addAudioSpectrumListener | back to summary |
|---|---|
| public void addAudioSpectrumListener(AudioSpectrumListener listener) Adds a listener for audio spectrum events.
| |
| addBufferListener | back to summary |
|---|---|
| public void addBufferListener(BufferListener listener) Adds a listener for all buffer events.
| |
| addMarkerListener | back to summary |
|---|---|
| public void addMarkerListener(MarkerListener listener) Adds a listener for marker events.
| |
| addMediaErrorListener | back to summary |
|---|---|
| public void addMediaErrorListener(MediaErrorListener listener) Adds a listener for warnings which occur within the lifespan of the player.
| |
| addMediaPlayerListener | back to summary |
|---|---|
| public void addMediaPlayerListener(PlayerStateListener listener) Adds a listener for media state.
| |
| addMediaTimeListener | back to summary |
|---|---|
| public void addMediaTimeListener(PlayerTimeListener listener) Adds a listener for player time events. | |
| addVideoTrackSizeListener | back to summary |
|---|---|
| public void addVideoTrackSizeListener(VideoTrackSizeListener listener) Adds a listener for video track frame dimensions.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Release any resources held by this player. The player will be unusable after this method is invoked. | |
| getAudioSpectrum | back to summary |
|---|---|
| public AudioSpectrum getAudioSpectrum() Gets the audio spectrum controller for the player.
| |
| getAudioSyncDelay | back to summary |
|---|---|
| public long getAudioSyncDelay() Retrieve the audio rendering delay. | |
| getBalance | back to summary |
|---|---|
| public float getBalance() Gets the current balance.
| |
| getDuration | back to summary |
|---|---|
| public double getDuration() Gets the duration in seconds. If the duration is unknown or cannot be obtained when this method is invoked, a negative value will be returned. | |
| getEqualizer | back to summary |
|---|---|
| public AudioEqualizer getEqualizer() Gets the audio equalizer for the player.
| |
| getMedia | back to summary |
|---|---|
| public Media getMedia() Gets a Media object.
| |
| getMediaPlayerOverlay | back to summary |
|---|---|
| public MediaPlayerOverlay getMediaPlayerOverlay() Returns the media player overlay support interface.
| |
| getMute | back to summary |
|---|---|
| public boolean getMute() Gets the muted state. While muted no audio will be heard.
| |
| getPresentationTime | back to summary |
|---|---|
| public double getPresentationTime() Gets the current presentation time. If the time is unknown or cannot be obtained when this method is invoked, a negative value will be returned.
| |
| getRate | back to summary |
|---|---|
| public float getRate() Get the rate of playback. | |
| getStartTime | back to summary |
|---|---|
| public double getStartTime() Gets the time within the duration of the media to start playing. | |
| getState | back to summary |
|---|---|
| public PlayerStateEvent. Retrieves the current
| |
| getStopTime | back to summary |
|---|---|
| public double getStopTime() Gets the time within the duration of the media to stop playing. | |
| getVideoRenderControl | back to summary |
|---|---|
| public VideoRenderControl getVideoRenderControl() Returns the video rendering support interface.
| |
| getVolume | back to summary |
|---|---|
| public float getVolume() Gets the current volume.
| |
| isErrorEventCached | back to summary |
|---|---|
| public boolean isErrorEventCached() Returns true if we have cached error event. | |
| pause | back to summary |
|---|---|
| public void pause() Pauses the media playing. Calling play() after pause() will continue playing the media from where it left off. | |
| play | back to summary |
|---|---|
| public void play() Begins playing of the media. To ensure smooth playback, catch the onReady event in the MediaPlayerListener before playing. | |
| removeAudioSpectrumListener | back to summary |
|---|---|
| public void removeAudioSpectrumListener(AudioSpectrumListener listener) Removes a listener for audio spectrum events.
| |
| removeBufferListener | back to summary |
|---|---|
| public void removeBufferListener(BufferListener listener) Removes a listener for buffer events.
| |
| removeMarkerListener | back to summary |
|---|---|
| public void removeMarkerListener(MarkerListener listener) Removes a listener for marker events.
| |
| removeMediaErrorListener | back to summary |
|---|---|
| public void removeMediaErrorListener(MediaErrorListener listener) Removes a listener for warnings.
| |
| removeMediaPlayerListener | back to summary |
|---|---|
| public void removeMediaPlayerListener(PlayerStateListener listener) Removes a listener for media state.
| |
| removeMediaTimeListener | back to summary |
|---|---|
| public void removeMediaTimeListener(PlayerTimeListener listener) Removes a listener for player time events. | |
| removeVideoTrackSizeListener | back to summary |
|---|---|
| public void removeVideoTrackSizeListener(VideoTrackSizeListener listener) Removes a listener for video track frame dimensions.
| |
| seek | back to summary |
|---|---|
| public void seek(double streamTime) Seeks playback to the specified time. The state of the player is unchanged. A negative value will be clamped to zero, and a positive value to the duration, if known.
| |
| setAudioSyncDelay | back to summary |
|---|---|
| public void setAudioSyncDelay(long delay) Set the amount of time to delay the audio. A positive value makes audio render later, and a negative value makes audio render earlier.
| |
| setBalance | back to summary |
|---|---|
| public void setBalance(float balance) Sets the balance. A negative value indicates left of center and a positive
value right of center. Values will be clamped to the range
| |
| setMute | back to summary |
|---|---|
| public void setMute(boolean enable) Enables/disable mute. If mute is enabled then disabled, the previous volume goes into effect. | |
| setRate | back to summary |
|---|---|
| public void setRate(float rate) Sets the rate of playback. A positive value indicates forward play and a negative value reverse play. | |
| setStartTime | back to summary |
|---|---|
| public void setStartTime(double streamTime) Sets the start time within the media to play. | |
| setStopTime | back to summary |
|---|---|
| public void setStopTime(double streamTime) Sets the stop time within the media to stop playback. | |
| setVolume | back to summary |
|---|---|
| public void setVolume(float volume) Sets the volume. Values will be clamped to the range
| |
| stop | back to summary |
|---|---|
| public void stop() Stops playing of the media and resets the play time to 0. | |