com.voximplant.sdk.call

Interface IVideoStream



  • public interface IVideoStream
    Interface that may be used to handle add/remove video events on local and remote sides.
    • Method Detail

      • getVideoStreamId

        java.lang.String getVideoStreamId()
        Get the video stream id.
        Returns:
        The video stream id
      • addVideoRenderer

        void addVideoRenderer(VideoRenderer.Callbacks videoRenderer, RenderScaleType scaleType)
        Add new video renderer to video stream. It is recommended to use SurfaceViewRenderer for the most of cases.
        Render view can be associated with only one video stream in the call. If it's assigned to multiple streams, it will be associated with the last one. In case of custom implementation of VideoRenderer.Callback class:

        1. VideoRenderer.renderFrameDone(i420Frame) must be called after every VideoRenderer.renderFrame()
        2. See ClientConfig parameters to set up video frame format

        Parameters:
        videoRenderer - org.webrtc.SurfaceViewRenderer or custom implementation of org.webrtc.VideoRenderer.Callbacks
        scaleType - scaling type for new video renderer
      • removeVideoRenderer

        void removeVideoRenderer(VideoRenderer.Callbacks videoRenderer)
        Remove previously added video renderer
        Parameters:
        videoRenderer - org.webrtc.SurfaceViewRenderer or custom implementation of org.webrtc.VideoRenderer.Callbacks