Interface RemoteVideoFrameListener

  • All Implemented Interfaces:

    
    public interface RemoteVideoFrameListener
    
                        

    Listener to be notified about changes connected with remote video frames processing.

    • 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. Frame comes in I420 planar or semi-planar (but not fully interleaved) 420 format. Blocks rendering. In-place modification of provided I420 frame be rendered. If heavy operation is required, which does not affect rendering, e.g. saving screen-shot in JPEG - spawn a work thread and work with a copy of the frame.

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