camera.setMode failed
512 2 2020-8-11
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_KIk8lrBLRWVP
lvl.1

China
Offline

I use this function to change camera mode but it return "Undefined Error"

camera.setMode(SettingsDefinitions.CameraMode.MEDIA_DOWNLOAD, new CommonCallbacks.CompletionCallback() {
    @Override
    public void onResult(DJIError djiError) {
        Log.d("cameraMode",djiError!=null?djiError.toString():"success");
    }
});
2020-8-11
Use props
DJI_Lisa
lvl.4
Hong Kong
Offline

There is a sample of how to use this here: FetchMediaView.java
DJISampleApplication.getProductInstance()
                        .getCamera()
                        .setMode(SettingsDefinitions.CameraMode.MEDIA_DOWNLOAD,
                                new CommonCallbacks.CompletionCallback() {
                                    @Override
                                    public void onResult(DJIError djiError) {
                                        if (null == djiError) {
                                            fetchMediaList();
                                        }
                                    }
                                });

2020-8-11
Use props
djiuser_KIk8lrBLRWVP
lvl.1

China
Offline

DJI_Lisa Posted at 8-11 08:05
There is a sample of how to use this here: FetchMediaView.java
DJISampleApplication.getProductInstance()
                        .getCamera()

That's what I used.I used mode "SHOOT_PHOTO" and "RECORD_VIDEO" it works, but "MEDIA_DOWNLOAD" failed return "Undefined Error"
2020-8-11
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules