dji-sdk / Mobile-SDK-iOS

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

Can't not videoPreviewer.decodeThread again with mini 2 #517

Open CHEN031226 opened 2 years ago

CHEN031226 commented 2 years ago

Hello,I have a problem. I want to start video decoding again when I remove all listener, There is no effect in mini2 but other aircraft could.

Remove: DJIVideoPreviewer.instance().unSetView() DJISDKManager.videoFeeder()?.remove(self) DJISDKManager.videoFeeder()?.primaryVideoFeed.removeAllListeners()

Start: DJIVideoPreviewer.instance().setView(self.fpv.view) DJISDKManager.videoFeeder()?.add(self) DJISDKManager.videoFeeder()?.primaryVideoFeed.add(self, with: nil) DJIVideoPreviewer.instance().start() DJIVideoPreviewer.instance()?.frameControlHandler = self;

DJI-William commented 2 years ago

Does the object-C sample has this issue. Because when you quit the page, the listener would be removed.