DJI Mobile SDK Documentation

      class DJIVideoFeeder

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

      Class that manages live video feed from DJI products to the mobile device.

      Class Members:
      Primary Video Feed
      property
      property primaryVideoFeed
      @property (nonatomic, strong, nonnull) DJIVideoFeed *primaryVideoFeed
      Header:DJIVideoFeeder.h
      Description:

      The primary video feed.
      The possible physical sources for the primary video feed include:
      - DJIVideoFeedPhysicalSourceMainCamera
      - DJIVideoFeedPhysicalSourceLB
      - DJIVideoFeedPhysicalSourceHDMI
      - DJIVideoFeedPhysicalSourceLeftCamera
      - DJIVideoFeedPhysicalSourceRightCamera
      For M210 and M210 RTK, the physical sources are controlled by the bandwidth allocation between the port (left) and starboard (right) main cameras (setBandwidthAllocationForLeftCamera:withCompletion):
      - When bandwidth is 100% on the left camera, the primary source is DJIVideoFeedPhysicalSourceLeftCamera and the secondary source is DJIVideoFeedPhysicalSourceFPVCamera.
      - When bandwidth is 0% on the left camera, the primary source is DJIVideoFeedPhysicalSourceRightCamera and the secondary source is DJIVideoFeedPhysicalSourceFPVCamera.
      - When bandwidth is neither 0% nor 100% on the left camera, the primary source is DJIVideoFeedPhysicalSourceLeftCamera and the secondary source is DJIVideoFeedPhysicalSourceRightCamera.
      For Matrice 300 RTK, the physical source can be:
      DJIVideoFeedPhysicalSourceLeftCamera,
      DJIVideoFeedPhysicalSourceRightCamera,
      DJIVideoFeedPhysicalSourceTopCamera and
      DJIVideoFeedPhysicalSourceFPVCamera.
      Please note that video playback stream will be received as primary or secondary video feed, if video playback starts on Zenmuse H20/H20T. Video feed channel could be assigned by assignSourceToPrimaryChannel:secondaryChannel:withCompletion in DJIOcuSyncLink.

      See Also:

      DJIVideoFeed

      Secondary Video Feed
      property
      property secondaryVideoFeed
      @property (nonatomic, strong, nonnull) DJIVideoFeed *secondaryVideoFeed
      Header:DJIVideoFeeder.h
      Description:

      The secondary video feed.
      The possible physical sources for the secondary video feed include:
      - DJIVideoFeedPhysicalSourceFPVCamera
      - DJIVideoFeedPhysicalSourceEXT
      - DJIVideoFeedPhysicalSourceAV
      - DJIVideoFeedPhysicalSourceRightCamera. For M210 and M210 RTK, the physical sources are controlled by the bandwidth allocation between the port (left) and starboard (right) main cameras (setBandwidthAllocationForLeftCamera:withCompletion):
      - When bandwidth is 100% on the left camera, the primary source is DJIVideoFeedPhysicalSourceLeftCamera and the secondary source is DJIVideoFeedPhysicalSourceFPVCamera.
      - When bandwidth is 0% on the left camera, the primary source is DJIVideoFeedPhysicalSourceRightCamera and the secondary source is DJIVideoFeedPhysicalSourceFPVCamera.
      - When bandwidth is neither 0% nor 100% on the left camera, the primary source is DJIVideoFeedPhysicalSourceLeftCamera and the secondary source is DJIVideoFeedPhysicalSourceRightCamera.
      For Matrice 300 RTK, the physical source can be: DJIVideoFeedPhysicalSourceLeftCamera, DJIVideoFeedPhysicalSourceRightCamera, DJIVideoFeedPhysicalSourceTopCamera and DJIVideoFeedPhysicalSourceFPVCamera. Please note that video playback stream will be received as primary or secondary video feed, if video playback starts on Zenmuse H20/H20T. Video feed channel could be assigned by assignSourceToPrimaryChannel:secondaryChannel:withCompletion in DJIOcuSyncLink.

      See Also:

      DJIVideoFeed

      Add Listener
      method
      method addVideoFeedSourceListener
      - (void)addVideoFeedSourceListener:(id <DJIVideoFeedSourceListener>)sourceListener
      Header:DJIVideoFeeder.h
      Description:

      Add listener to receive the physical source changes.

      Input Parameters:
      id <DJIVideoFeedSourceListener> sourceListenerListener to add.
      Remove Listener
      method
      method removeVideoFeedSourceListener
      - (void)removeVideoFeedSourceListener:(id <DJIVideoFeedSourceListener>)sourceListener
      Header:DJIVideoFeeder.h
      Description:

      Remove listener to stop receiving the physical source changes.

      Input Parameters:
      id <DJIVideoFeedSourceListener> sourceListenerListener to remove.
      Remove All Listener
      method
      method removeAllListeners
      - (void)removeAllListeners
      Header:DJIVideoFeeder.h
      Description:

      Remove all listeners.