Partilhar via


VideoStreamRenderer Class

  • java.lang.Object
    • com.azure.android.communication.calling.VideoStreamRenderer

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

VideoStreamRendererView createView()

Creates a VideoStreamRendererView using default CreateViewOptions

VideoStreamRendererView createView(CreateViewOptions options)

Creates a VideoStreamRendererView using the provided CreateViewOptions

void dispose()

Stops Rendering and destroy the VideoStreamRendererView

StreamSize 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:

localVideoStream - an instance of the local video stream to render
context - 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 render
context - an android context object

Method Details

addRendererListener

public void addRendererListener(RendererListener listener)

Subscribe to the rendering events raised by a VideoStreamRenderer

Parameters:

listener

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

removeRendererListener

public void removeRendererListener(RendererListener listener)

Unsubscribe to the rendering events raised by a VideoStreamRenderer

Parameters:

listener

Applies to