dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
579 stars 253 forks source link

M300RTK: DUXFPVViewControllerDelegate.didUpdateCurrentFPVViewCurrentCameraIndexTo is called once per second when primary source is fpv camera #466

Open YaroTs opened 3 years ago

YaroTs commented 3 years ago

Drone: M300RTK, left camera = Zenmuse P1 Mobile SDK: 4.14

I have a DUXFPVViewControllerDelegate which listens to fpv view camera index update using this method:

func fpvViewController(_ fpvViewController: DUXFPVViewController, didUpdateCurrentFPVViewCurrentCameraIndexTo updatedFPVViewCurrentCameraIndex: UInt)

When I change primary and secondary video sources using DJIOcuSyncLink:

open func assignSource(toPrimaryChannel primaryVideoSource: DJIVideoFeedPhysicalSource, secondaryChannel secondaryVideoSource: DJIVideoFeedPhysicalSource, withCompletion completion: DJICompletionBlock? = nil)

func didUpdateCurrentFPVViewCurrentCameraIndexTo is called appropriately once per second with NSNotFound index of fpv camera.

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #48427:

Dear Customer,

Thank you for contacting DJI. Sorry that the Zenmuse P1 is not supported by the SDK. Please don't use it.

Thanks,

Luce Luo DJI Developer Support

°°°