Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CHEN031226 opened this issue May 16, 2022 · 1 comment
Open

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

CHEN031226 opened this issue May 16, 2022 · 1 comment

Comments

@CHEN031226
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants