DJI Mobile SDK Documentation

      class VideoDataListener

      interface VideoDataListener
      Package:dji.sdk.camera
      Description:

      Video data listener.

      Class Members:

      Callback Method

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

      Listener that is called when video data is received, but if isLensDistortionCalibrationNeeded return true, the callback will never be called. For Matrice 300 RTK, you must use assignSourceToPrimaryChannel to assign or reassign the channel when you restart the aircraft or the aircraft is reconnected with the remote controller, otherwise you will not receive any data from this callback.

      Input Parameters:
      byte[] videoBufferAn array containing video buffer.
      int sizeThe size of the buffer that contains valid data.