DJI Mobile SDK Documentation

      class MediaFrameListener

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

      Media file data listener.

      Supported since MSDK 5.8.0

      Class Members:
      method onReceiveStream
      @WorkerThread
      void onReceiveStream(
      byte[] data,
      int offset,
      int length,
      @NonNull StreamInfo info)
      Package:dji.v5.manager.interfaces
      Description:

      When the media file data is received, this method will be called back.

      Supported since MSDK 5.8.0

      Input Parameters:
      byte[] dataMedia file data.
      int offsetMedia file data offset.
      int lengthMedia file data length.
      @NonNull StreamInfo infoMedia file data information.
      method
      method onError
      void onError(@NonNull IDJIError error)
      Package:dji.v5.manager.interfaces
      Description:

      When an error occurs during media file playback., this method will be called back.

      Supported since MSDK 5.8.0

      Input Parameters:
      @NonNull IDJIError errorError during playback of media files.