DJI Mobile SDK Documentation

      class VideoDataListener

      interface VideoDataListener

      Video data listener.

      Class Members:

      Callback Method

      method onReceive
      void onReceive(byte[] videoBuffer, int size)

      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.