Package 

Interface LocalVideoFrameListener

    • 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(VideoFrame frame, ProcessedVideoFrameListener processedFrameListener) Called on a worker thread when a new frame is available from the local camera.
      • 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(VideoFrame frame, ProcessedVideoFrameListener processedFrameListener)

        Called on a worker thread when a new frame is available from the local camera. It provides the possibility for developer to process the local video frames (e.g. applying filters on the frames), and send the updated video frames to the remote client. Updated frames are also shown on preview. The video frames are in YUV I420 planar or semi-planar (but not fully interleaved) format. android.graphics.ImageFormat.YUV_420_888

        Parameters:
        frame - The YUV I420 frame object.
        processedFrameListener - Use it to inform that processing is complete and send frames (updated or original) to remote clientIMPORTANT: When processing is complete, call ProcessedVideoFrameListener.onFrameProcessed.