DJI Mobile SDK Documentation

      class DJIVideoFeed

      @interface DJIVideoFeed : NSObject
      Header:DJIVideoFeeder.h
      Inherits From:NSObject
      Description:

      Video feed. Use it to receive video data from a physical source.

      Class Members:
      Physical Source
      property
      property physicalSource
      @property (nonatomic, assign, readonly) DJIVideoFeedPhysicalSource physicalSource
      Header:DJIVideoFeeder.h
      Description:

      The physical source of the video feed.

      See Also:

      DJIVideoFeedPhysicalSource

      Add Listener
      method
      method addListener:withQueue
      - (void)addListener:(id <DJIVideoFeedListener>)videoFeedListener withQueue:(nullable dispatch_queue_t)queue
      Header:DJIVideoFeeder.h
      Description:

      Add listener to receive new video data.

      Input Parameters:
      id <DJIVideoFeedListener> videoFeedListenerListener to receive video data.
      nullable dispatch_queue_t queueThe queue that videoFeed:didUpdateVideoData is called in.
      Remove Listener
      method
      method removeListener
      - (void)removeListener:(id <DJIVideoFeedListener>)videoFeedListener
      Header:DJIVideoFeeder.h
      Description:

      Remove listener to stop receiving new video data.

      Input Parameters:
      id <DJIVideoFeedListener> videoFeedListenerListener to remove.
      method removeAllListeners
      - (void)removeAllListeners
      Header:DJIVideoFeeder.h
      Description:

      Remove all Listeners for video feed.

      protocol DJIVideoFeedSourceListener
      @protocol DJIVideoFeedSourceListener <NSObject>
      Header:DJIVideoFeeder.h
      Inherits From:NSObject
      Description:

      Listener that receives notifications when a new video physical source becomes available.

      Protocol Methods:

      Protocol Method

      method videoFeed:didChangePhysicalSource
      required
      - (void)videoFeed:(nonnull DJIVideoFeed *)videoFeed didChangePhysicalSource:(DJIVideoFeedPhysicalSource)physicalSource
      Header:DJIVideoFeeder.h
      Description:

      Called when a video feed is made available from a new physical source.

      Input Parameters:
      nonnull DJIVideoFeed * videoFeedA DJIVideoFeed object.
      DJIVideoFeedPhysicalSource physicalSourceAn enum value of DJIVideoFeedPhysicalSource.
      protocol DJIVideoFeedListener
      @protocol DJIVideoFeedListener <NSObject>
      Header:DJIVideoFeeder.h
      Inherits From:NSObject
      Description:

      Represents a single video feed from a single channel or port.

      Protocol Methods:

      Protocol Method

      method videoFeed:didUpdateVideoData
      required
      - (void)videoFeed:(nonnull DJIVideoFeed *)videoFeed didUpdateVideoData:(nonnull NSData *)videoData
      Header:DJIVideoFeeder.h
      Description:

      Called when the video feed receives new video data.

      Input Parameters:
      nonnull DJIVideoFeed * videoFeedA DJIVideoFeed object.
      nonnull NSData * videoDataNew video data.
      enum DJIVideoFeedPhysicalSource
      typedef NS_ENUM(NSInteger, DJIVideoFeedPhysicalSource)
      Header:DJIVideoFeeder.h
      Description:

      The physical source of a video feed.

      Enum Members:
      DJIVideoFeedPhysicalSourceMainCameraThe video feed is from the main camera. It is the physical source used by most of DJI products. For M210 and M210 RTK, DJIVideoFeedPhysicalSourceLeftCamera and DJIVideoFeedPhysicalSourceRightCamera are used instead.
      DJIVideoFeedPhysicalSourceFPVCameraThe video feed is from the FPV camera on Inspire 2 or M200 series.
      DJIVideoFeedPhysicalSourceEXTThe video feed is from EXT port while EXT port is enabled. It is only used for Lightbridge 2 or aircrafts with Lightbridge 2 (e.g. M600).
      DJIVideoFeedPhysicalSourceLBThe video feed is from one of the LB ports (AV or HDMI) while EXT Port is enabled. It is only used for stand-alone Lightbridge 2 or aircraft with stand-alone Lightbridge 2 modules (e.g. M600).
      DJIVideoFeedPhysicalSourceHDMIThe video feed is from the HDMI port while EXT port is disabled. It is only used for stand-alone Lightbridge 2 or aircraft with stand-alone Lightbridge 2 modules.
      DJIVideoFeedPhysicalSourceAVThe video feed is from AV port while EXT port is disabled. It is only used for stand-alone Lightbridge 2 or aircraft with stand-alone Lightbridge 2 modules.
      DJIVideoFeedPhysicalSourceLeftCameraThe video feed is from the port (left) main camera. It is only used for M210 and M210 RTK.
      DJIVideoFeedPhysicalSourceRightCameraThe video feed is from the starboard (right) main camera. It is only used for M210 and M210 RTK.
      DJIVideoFeedPhysicalSourceUnknownUnknown video physical source.