Class VideoStreamRenderer
- Object
-
- VideoStreamRenderer
-
public final class VideoStreamRenderer extends Object
Renderer class to handle video streams
-
-
Constructor Summary
Constructors Constructor Description VideoStreamRenderer(LocalVideoStream localVideoStream, Context context)
Creates a new instance to render a localVideoStreamVideoStreamRenderer(RemoteVideoStream remoteVideoStream, Context context)
Creates a new instance to render a remoteVideoStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRendererListener(RendererListener listener)
Subscribe to the rendering events raised by a VideoStreamRendererVideoStreamRendererView
createView()
Creates a VideoStreamRendererView using default CreateViewOptionsVideoStreamRendererView
createView(CreateViewOptions options)
Creates a VideoStreamRendererView using the provided CreateViewOptionsvoid
dispose()
Stops Rendering and destroy the VideoStreamRendererViewStreamSize
getSize()
Retrieve the size of the underlying Video Streamvoid
removeRendererListener(RendererListener listener)
Unsubscribe to the rendering events raised by a VideoStreamRenderer
-
-
-
Constructor Detail
-
VideoStreamRenderer
public VideoStreamRenderer(LocalVideoStream localVideoStream, Context context)
Creates a new instance to render a localVideoStream- Parameters:
localVideoStream
- an instance of the local video stream to rendercontext
- an android context object
-
VideoStreamRenderer
public VideoStreamRenderer(RemoteVideoStream remoteVideoStream, Context context)
Creates a new instance to render a remoteVideoStream- Parameters:
remoteVideoStream
- an instance of the remote video stream to rendercontext
- an android context object
-
-
Method Detail
-
createView
public VideoStreamRendererView createView()
Creates a VideoStreamRendererView using default CreateViewOptions- Returns:
- VideoStreamRendererView instance
-
createView
public VideoStreamRendererView createView(CreateViewOptions options)
Creates a VideoStreamRendererView using the provided CreateViewOptions- Parameters:
options
- View options- Returns:
- VideoStreamRendererView instance
-
dispose
public void dispose()
Stops Rendering and destroy the VideoStreamRendererView
-
getSize
public StreamSize getSize()
Retrieve the size of the underlying Video Stream- Returns:
- StreamSize representing the dimensions of the video stream
-
addRendererListener
public void addRendererListener(RendererListener listener)
Subscribe to the rendering events raised by a VideoStreamRenderer
-
removeRendererListener
public void removeRendererListener(RendererListener listener)
Unsubscribe to the rendering events raised by a VideoStreamRenderer
-
-