DJI Mobile SDK Documentation

      class IVideoFrame

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

      Video frame class.

      Supported since MSDK 5.0.0

      Class Members:
      method
      method getData
      byte[] getData()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the video data of current frame.

      Return:
      byte[]Return the video data of current frame.
      method
      method getWidth
      int getWidth()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the width of current frame.

      Return:
      intReturn the width of video data.
      method
      method getHeight
      int getHeight()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the height of the current frame.

      Return:
      intReturn the height of video data.
      method
      method getFps
      int getFps()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the FPS of current frame.

      Return:
      intReturn the FPS of video data.
      method getSeqNumber
      long getSeqNumber()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the sequence number of current frame.

      Return:
      longReturn the sequence number of video data.
      method
      method isIFrame
      boolean isIFrame()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the current frame is an I frame.

      Return:
      booleanReturn whether the current frame is an I frame.
      method
      method getPTS
      long getPTS()
      Package:dji.v5.common.video.interfaces
      Description:

      Get the timestamp (PTS) of the current frame.

      Return:
      longReturn the timestamp (PTS) of the current frame.