private class NativeMediaPlayer.VideoRenderer extends java.lang.Object implements VideoRenderControl
VideoRendererListener
s. This allows
any registered listeners, specifically AWT and Prism, to receive video
frames.Modifier | Constructor and Description |
---|---|
private |
VideoRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
addVideoFrameRateListener(VideoFrameRateListener listener)
Adds the listener to the player's
VideoRenderControl . |
void |
addVideoRendererListener(VideoRendererListener listener)
adds the listener to the player's videoUpdate.
|
int |
getFrameHeight()
Gets the height of a video frame
|
int |
getFrameWidth()
Gets the width of a video frame
|
void |
removeVideoFrameRateListener(VideoFrameRateListener listener)
Remove the listener from the player's
VideoRenderControl . |
void |
removeVideoRendererListener(VideoRendererListener listener)
removes the listener from the player.
|
public void addVideoRendererListener(VideoRendererListener listener)
addVideoRendererListener
in interface VideoRenderControl
listener
- the object which provides the VideoUpdateListener
callback interfacepublic void removeVideoRendererListener(VideoRendererListener listener)
removeVideoRendererListener
in interface VideoRenderControl
listener
- to be removed from the playerpublic void addVideoFrameRateListener(VideoFrameRateListener listener)
VideoRenderControl
VideoRenderControl
. The
listener will be invoked when there is a significant change in the
decoded video frame rate.addVideoFrameRateListener
in interface VideoRenderControl
public void removeVideoFrameRateListener(VideoFrameRateListener listener)
VideoRenderControl
VideoRenderControl
.removeVideoFrameRateListener
in interface VideoRenderControl
public int getFrameWidth()
VideoRenderControl
getFrameWidth
in interface VideoRenderControl
public int getFrameHeight()
VideoRenderControl
getFrameHeight
in interface VideoRenderControl