DJI Mobile SDK Documentation

      class VideoDataCallback

      interface VideoDataCallback
      Package:dji.sdk.camera
      Description:

      Video data update callback. H.264 (also called MPEG-4 Part 10 Advanced Video Coding or MPEG-4 AVC) is a video coding format that is currently one of the most commonly used formats for the recording, compression, and distribution of video content.

      Class Members:

      Callback Method

      State
      method
      method onReceive
      void onReceive(byte[] videoBuffer, int length)
      Package:dji.sdk.camera
      Description:

      Video data update callback. H.264 (also called MPEG-4 Part 10 Advanced Video Coding or MPEG-4 AVC) is a video coding format that is currently one of the most commonly used formats for the recording, compression, and distribution of video content.

      Input Parameters:
      byte[] videoBufferH.264 video data buffer. Don't free the buffer after it has been used. The units for the video buffer are bytes.
      int lengthSize of the address of the video data buffer in bytes.