Open CHEN031226 opened 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;
Does the object-C sample has this issue. Because when you quit the page, the listener would be removed.
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;