VideoStreamRenderer Class
- java.
lang. Object - com.
azure. android. communication. calling. VideoStreamRenderer
- com.
public class VideoStreamRenderer
Renderer class to handle video streams
Constructor Summary
Constructor | Description |
---|---|
VideoStreamRenderer(LocalVideoStream localVideoStream, Context context) |
Creates a new instance to render a localVideoStream |
VideoStreamRenderer(RemoteVideoStream remoteVideoStream, Context context) |
Creates a new instance to render a remoteVideoStream |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addRendererListener(RendererListener listener)
Subscribe to the rendering events raised by a VideoStreamRenderer |
Video |
createView()
Creates a VideoStreamRendererView using default CreateViewOptions |
Video |
createView(CreateViewOptions options)
Creates a VideoStreamRendererView using the provided CreateViewOptions |
void |
dispose()
Stops Rendering and destroy the VideoStreamRendererView |
Stream |
getSize()
Retrieve the size of the underlying Video Stream |
void |
removeRendererListener(RendererListener listener)
Unsubscribe to the rendering events raised by a VideoStreamRenderer |
Constructor Details
VideoStreamRenderer
public VideoStreamRenderer(LocalVideoStream localVideoStream, Context context)
Creates a new instance to render a localVideoStream
Parameters:
VideoStreamRenderer
public VideoStreamRenderer(RemoteVideoStream remoteVideoStream, Context context)
Creates a new instance to render a remoteVideoStream
Parameters:
Method Details
addRendererListener
public void addRendererListener(RendererListener listener)
Subscribe to the rendering events raised by a VideoStreamRenderer
Parameters:
createView
public VideoStreamRendererView createView()
Creates a VideoStreamRendererView using default CreateViewOptions
Returns:
createView
public VideoStreamRendererView createView(CreateViewOptions options)
Creates a VideoStreamRendererView using the provided CreateViewOptions
Parameters:
Returns:
dispose
public void dispose()
Stops Rendering and destroy the VideoStreamRendererView
getSize
public StreamSize getSize()
Retrieve the size of the underlying Video Stream
Returns:
removeRendererListener
public void removeRendererListener(RendererListener listener)
Unsubscribe to the rendering events raised by a VideoStreamRenderer
Parameters: