DJI Mobile SDK Documentation

      class CameraFrameListener

      interface CameraFrameListener
      Package:dji.v5.manager.interfaces
      Description:

      video frame data listener.

      Supported since MSDK 5.8.0

      Class Members:
      method
      method onFrame
      @WorkerThread
      void onFrame(@NonNull byte[] frameData,
      int offset,
      int length,
      int width,
      int height,
      @NonNull FrameFormat format)
      Package:dji.v5.manager.interfaces
      Description:

      When the video frame data is received, this method will be called back.

      Supported since MSDK 5.8.0

      Input Parameters:
      @NonNull byte[] frameDatavideo frame data.
      int offsetvideo frame data offset.
      int lengthvideo frame data length.
      int widthvideo frame data width.
      int heightvideo frame data height.
      @NonNull FrameFormat formatvideo frame data format.