Interface RemoteVideoFrameListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onFrame(String callId, VideoFrame frame) Called when a new frame is received from the remote stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onFrame

         abstract Unit onFrame(String callId, VideoFrame frame)

        Called when a new frame is received from the remote stream.

        Frames are in YUV I420 planar or semi-planar (not fully interleaved) format. Strides and plane pointers must be respected — do not assume a packed layout.

        This callback blocks rendering. In-place modification of the provided frame will be reflected in the rendered output. For operations that do not affect rendering (e.g. saving a JPEG snapshot), copy the frame and process it on a separate thread.

        Parameters:
        callId - The id of the call the frame is coming from.
        frame - The YUV I420 frame.