DJI Mobile SDK Documentation

      class YuvDataListener

      @Deprecated
      interface YuvDataListener
      Package:dji.v5.common.video.interfaces
      Description:

      YUV data listener.

      Supported since MSDK 5.0.0

      Class Members:
      method
      method onReceive
      void onReceive(MediaFormat mediaFormat, byte[] data, int width, int height)
      Package:dji.v5.common.video.interfaces
      Description:

      The listener will be triggered when the decoder has output YUV data for a frame.

      Supported since MSDK 5.0.0

      Input Parameters:
      MediaFormat mediaFormatThe media format of video.
      byte[] dataThe YUV data of current frame.
      int widthThe width of the YUV data of current frame.
      int heightThe height of the YUV data of current frame.