DJI Mobile SDK Documentation

      class StreamDataCallback

      interface StreamDataCallback
      Package:dji.sdk.payload
      Description:

      This interface provides a callback to get stream data sent from payload to the Mobile SDK.

      Class Members:

      Callback Method

      State
      method
      method onGetStreamData
      void onGetStreamData(byte[] data, int len)
      Package:dji.sdk.payload
      Description:

      When the payload send the bytes to the Mobile SDK by UDP channel, this method will be called, note that if dealing of the data block the data feeder, the byte might lost.

      Input Parameters:
      byte[] dataThe received stream data.
      int lenValid length of the data.