| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private boolean | |
| private volatile WCMediaPlayerImpl. | |
| private int | |
| private volatile PrismMediaFrameHandler | |
| private final WCMediaPlayerImpl. | |
| private boolean | |
| private final Object | |
| private volatile MediaPlayer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected float | |
| private MediaPlayer | |
| private void | |
| protected void | load(String url, String userAgent)
Implements abstract com. Methods to implement |
| private void | |
| public void | onBufferProgress(BufferProgressEvent event)
Implements com. Notification about buffer progress. |
| public void | onDurationChanged(double duration)
Implements com. Invoked when there is an update to the duration estimate. |
| public void | onError(Object source, int errCode, String message)
Implements com. Reports the occurrence of a error in media processing. |
| public void | onFinish(PlayerStateEvent pse)
Implements com. The finish state indicates playback has completed playback to the end. |
| public void | onHalt(PlayerStateEvent pse)
Implements com. The error notification provides information on any error during playback. |
| public void | onPause(PlayerStateEvent pse)
Implements com. The pause state indicates playback has paused. |
| public void | onPlaying(PlayerStateEvent pse)
Implements com. The play state indicates the media is beginning to play. |
| public void | onReady(PlayerStateEvent pse)
Implements com. The ready state indicates the media is loaded. |
| public void | onSizeChanged(int width, int height)
Implements com. The size notification indicates the dimension of the video has changed. |
| public void | |
| public void | onStop(PlayerStateEvent pse)
Implements com. The stop state indicates playback has paused and presentation time has been reset back to 0. |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| protected void | renderCurrentFrame(WCGraphicsContext gc, int x, int y, int w, int h)
Implements abstract com.
|
| private void | |
| protected void | |
| protected void | |
| private void | |
| protected void | setPreservesPitch(boolean preserve)
Implements abstract com.
|
| protected void | |
| protected void | |
| protected void | |
| private void |
| bufferedEnd | back to summary |
|---|---|
| private float bufferedEnd | |
| bufferedStart | back to summary |
|---|---|
| private float bufferedStart | |
| buffering | back to summary |
|---|---|
| private boolean buffering | |
| createThread | back to summary |
|---|---|
| private volatile WCMediaPlayerImpl. | |
| finished | back to summary |
|---|---|
| private int finished | |
| frameHandler | back to summary |
|---|---|
| private volatile PrismMediaFrameHandler frameHandler | |
| frameListener | back to summary |
|---|---|
| private final WCMediaPlayerImpl. | |
| gotFirstFrame | back to summary |
|---|---|
| private boolean gotFirstFrame | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| player | back to summary |
|---|---|
| private volatile MediaPlayer player | |
| WCMediaPlayerImpl | back to summary |
|---|---|
| pack-priv WCMediaPlayerImpl() | |
| cancelLoad | back to summary |
|---|---|
| protected void cancelLoad() Implements abstract com.
| |
| disposePlayer | back to summary |
|---|---|
| protected void disposePlayer() Implements abstract com.
| |
| getCurrentTime | back to summary |
|---|---|
| protected float getCurrentTime() Implements abstract com.
| |
| getPlayer | back to summary |
|---|---|
| private MediaPlayer getPlayer() | |
| installListeners | back to summary |
|---|---|
| private void installListeners() | |
| load | back to summary |
|---|---|
| protected void load(String url, String userAgent) Implements abstract com. Doc from com. Methods to implement
| |
| notifyFrameArrived | back to summary |
|---|---|
| private void notifyFrameArrived() | |
| onBufferProgress | back to summary |
|---|---|
| public void onBufferProgress(BufferProgressEvent event) Implements com. Doc from com. Notification about buffer progress.
| |
| onDurationChanged | back to summary |
|---|---|
| public void onDurationChanged(double duration) Implements com. Doc from com. Invoked when there is an update to the duration estimate.
| |
| onError | back to summary |
|---|---|
| public void onError(Object source, int errCode, String message) Implements com. Doc from com. Reports the occurrence of a error in media processing. An error may or may not cause a stop in processing.
| |
| onFinish | back to summary |
|---|---|
| public void onFinish(PlayerStateEvent pse) Implements com. Doc from com. The finish state indicates playback has completed playback to the end.
| |
| onHalt | back to summary |
|---|---|
| public void onHalt(PlayerStateEvent pse) Implements com. Doc from com. The error notification provides information on any error during playback.
| |
| onPause | back to summary |
|---|---|
| public void onPause(PlayerStateEvent pse) Implements com. Doc from com. The pause state indicates playback has paused.
| |
| onPlaying | back to summary |
|---|---|
| public void onPlaying(PlayerStateEvent pse) Implements com. Doc from com. The play state indicates the media is beginning to play.
| |
| onReady | back to summary |
|---|---|
| public void onReady(PlayerStateEvent pse) Implements com. Doc from com. The ready state indicates the media is loaded. For best results, developers should wait on OnReady() before playing a media.
| |
| onSizeChanged | back to summary |
|---|---|
| public void onSizeChanged(int width, int height) Implements com. Doc from com. The size notification indicates the dimension of the video has changed.
| |
| onStall | back to summary |
|---|---|
| public void onStall(PlayerStateEvent pse) Implements com.
| |
| onStop | back to summary |
|---|---|
| public void onStop(PlayerStateEvent pse) Implements com. Doc from com. The stop state indicates playback has paused and presentation time has been reset back to 0. If the player is asked to play() again, playback begins from the beginning.
| |
| pause | back to summary |
|---|---|
| protected void pause() Implements abstract com.
| |
| play | back to summary |
|---|---|
| protected void play() Implements abstract com.
| |
| prepareToPlay | back to summary |
|---|---|
| protected void prepareToPlay() Implements abstract com.
| |
| removeListeners | back to summary |
|---|---|
| private void removeListeners() | |
| renderCurrentFrame | back to summary |
|---|---|
| protected void renderCurrentFrame(WCGraphicsContext gc, int x, int y, int w, int h) Implements abstract com.
| |
| renderImpl | back to summary |
|---|---|
| private void renderImpl(WCGraphicsContext gc, int x, int y, int w, int h) | |
| seek | back to summary |
|---|---|
| protected void seek(float time) Implements abstract com.
| |
| setMute | back to summary |
|---|---|
| protected void setMute(boolean mute) Implements abstract com.
| |
| setPlayer | back to summary |
|---|---|
| private void setPlayer(MediaPlayer p) | |
| setPreservesPitch | back to summary |
|---|---|
| protected void setPreservesPitch(boolean preserve) Implements abstract com.
| |
| setRate | back to summary |
|---|---|
| protected void setRate(float rate) Implements abstract com.
| |
| setSize | back to summary |
|---|---|
| protected void setSize(int w, int h) Implements abstract com.
| |
| setVolume | back to summary |
|---|---|
| protected void setVolume(float volume) Implements abstract com.
| |
| updateBufferingStatus | back to summary |
|---|---|
| private void updateBufferingStatus() | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| cancelled | back to summary |
|---|---|
| private boolean cancelled | |
| url | back to summary |
|---|---|
| private final String url | |
| userAgent | back to summary |
|---|---|
| private final String userAgent | |
| CreateThread | back to summary |
|---|---|
| private CreateThread(String url, String userAgent) | |
| cancel | back to summary |
|---|---|
| private void cancel() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| Modifier and Type | Field and Description |
|---|---|
| private VideoDataBuffer | |
| private final Object | |
| private VideoDataBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public VideoDataBuffer | |
| public void | releaseVideoFrames()
Implements com. Notifies the listener that it needs to release video frames. |
| public void | videoFrameUpdated(NewFrameEvent nfe)
Implements com. Notifies the listener that a new frame is available for rendering. |
| currentFrame | back to summary |
|---|---|
| private VideoDataBuffer currentFrame | |
| frameLock | back to summary |
|---|---|
| private final Object frameLock | |
| nextFrame | back to summary |
|---|---|
| private VideoDataBuffer nextFrame | |
| MediaFrameListener | back to summary |
|---|---|
| private MediaFrameListener() | |
| getLatestFrame | back to summary |
|---|---|
| public VideoDataBuffer getLatestFrame() | |
| releaseVideoFrames | back to summary |
|---|---|
| public void releaseVideoFrames() Implements com. Doc from com. Notifies the listener that it needs to release video frames.
| |
| videoFrameUpdated | back to summary |
|---|---|
| public void videoFrameUpdated(NewFrameEvent nfe) Implements com. Doc from com. Notifies the listener that a new frame is available for rendering.
| |