com.voximplant.sdk.hardware

Interface ICustomVideoSource



  • public interface ICustomVideoSource
    Interface that represents alternative video frame source for a call. The interface may be used to send video frames from alternative to camera video source.
    • Method Detail

      • sendFrame

        void sendFrame(byte[] frame, int width, int height) throws java.lang.IllegalArgumentException
        Send video frame. Video frame must be in I420 format.
        Parameters:
        frame - Video frame in I420 format
        width - Video frame width
        height - Video frmae height
        Throws:
        java.lang.IllegalArgumentException - if width and height do not match video frame width and height
      • setCustomVideoSourceListener

        void setCustomVideoSourceListener(ICustomVideoSourceListener listener)
        Set ICustomVideoSourceListener to monitor its events
        Parameters:
        listener - ICustomVideoSourceListener instance
      • release

        void release()
        Release CustomVideoSource instance