Class VideoStreamRenderer


  • public final class VideoStreamRenderer
    extends Object
    Renderer class to handle video streams
    • 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 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 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