Class VideoLayer
- java.lang.Object
-
- com.avaya.clientservices.media.gui.NativeObject
-
- com.avaya.clientservices.media.gui.VideoSink
-
- com.avaya.clientservices.media.gui.VideoLayer
-
- All Implemented Interfaces:
Destroyable,Positionable,Renderable
- Direct Known Subclasses:
VideoLayerLocal,VideoLayerRemote
public abstract class VideoLayer extends VideoSink implements Positionable, Renderable
Base class for local and remote video layers.
-
-
Constructor Summary
Constructors Constructor Description VideoLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Call this method when finished with the object; which will release the underlying C++ object.voidonDrawFrame(double time)voidonSurfaceChanged(int width, int height)voidonSurfaceCreated()voidsetBounds(int x, int y, int width, int height)voidsetListener(VideoLayerListener listener)Registers a listener for changes to video frame properties.voidsetPosition(int x, int y)
-
-
-
Method Detail
-
destroy
public void destroy()
Call this method when finished with the object; which will release the underlying C++ object.- Specified by:
destroyin interfaceDestroyable- Overrides:
destroyin classNativeObject
-
setListener
public void setListener(VideoLayerListener listener)
Registers a listener for changes to video frame properties.- Parameters:
listener- The listener to register, ornullto unregister the listener.
-
setBounds
public void setBounds(int x, int y, int width, int height)- Specified by:
setBoundsin interfacePositionable
-
setPosition
public void setPosition(int x, int y)- Specified by:
setPositionin interfacePositionable
-
onSurfaceCreated
public void onSurfaceCreated()
- Specified by:
onSurfaceCreatedin interfaceRenderable
-
onSurfaceChanged
public void onSurfaceChanged(int width, int height)- Specified by:
onSurfaceChangedin interfaceRenderable
-
onDrawFrame
public void onDrawFrame(double time)
- Specified by:
onDrawFramein interfaceRenderable
-
-