dji-sdk / Mobile-SDK-iOS

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

Matrice 300 RTK - setCameraVideoStreamSource never completes (withCompletion) #421

Open edupazpix4d opened 3 years ago

edupazpix4d commented 3 years ago

The call to setCameraVideoStreamSourceon Matrice 300 RTK is never completed. The body of withCompletionis never executed.

Drone: DJI Matrice 300 RTK. Camera: Zenmuse H20T. Mobile SDK: 4.14-trial1.

Example code:

[self.djiCamera setCameraVideoStreamSource:DJICameraVideoStreamSourceZoom withCompletion:^(NSError * _Nullable error) {
            if(error) {
                myLog(@"Error while setting camera source");
            } else {
                myLog(@"Success when setting camera source");
            }
        }];
dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #42371:

Dear Customer,

Thank you for contacting DJI. Sorry about it. This issue has been reported to the engineer to investigate further.

Thanks,

Luce Luo DJI Developer Support

Matheus193dn commented 3 years ago

@edupazpix4d Hey, I can get the callback with the latest SDK. You can use my sample: https://github.com/Matheus193dn/Mobile-SDK-iOS/blob/master/Sample%20Code/SwiftSampleCode/DJISDKSwiftDemo/Camera/fpv/CameraFPVViewController.swift

edupazpix4d commented 3 years ago

@Matheus193dn Thanks a lot, I'll give it a look.

Matheus193dn commented 3 years ago

@edupazpix4d Thank you, but I tested and it only work at first time, this issue still happens after that.

Matheus193dn commented 3 years ago

@edupazpix4d Did you try this? image

edupazpix4d commented 3 years ago

Our OcuSyncLink is null, and I don't know why. I cannot move forward with this :(

Matheus193dn commented 3 years ago

Our OcuSyncLink is null, and I don't know why. I cannot move forward with this :(

That's weird. It does not happen to me 😅

dji-dev commented 3 years ago

The call to setCameraVideoStreamSourceon Matrice 300 RTK is never completed. The body of withCompletionis never executed.

Drone: DJI Matrice 300 RTK. Camera: Zenmuse H20T. Mobile SDK: 4.14-trial1.

Example code:

[self.djiCamera setCameraVideoStreamSource:DJICameraVideoStreamSourceZoom withCompletion:^(NSError * _Nullable error) {
            if(error) {
                myLog(@"Error while setting camera source");
            } else {
                myLog(@"Success when setting camera source");
            }
        }];

MobileSDK 4.15 has fixed this problem.You can use 4.15 to resolve this problem