Skip to content

“Insta360 X2 setCaptureStatusListener Not Triggering After Upgrade SDK” #112

@Adarsh1993

Description

@Adarsh1993

Earlier, I was using SDK 1.5.3, and everything was working fine. Now I have updated to the latest version, 1.8.1_build_06. The setup is complete, but capturing and timelapse are not working. I want to know what changes are required.

When I checked the GitHub documentation, it seems similar to the earlier version. However, after downloading the SDK and trying to run it, I found that it is developed in Kotlin, and there is no ready-to-use code.

I have the following queries:

Is it necessary to show a preview before capturing?

What is the proper process for capturing an image after connecting the camera via Wi-Fi? I am able to get some camera details, but capturing does not work.

Here is a snippet of my code:

For connecting via Wi-Fi:

InstaCameraManager.getInstance().openCamera(InstaCameraManager.CONNECT_TYPE_WIFI);

For capturing and listening to status:

InstaCameraManager.getInstance().setCaptureStatusListener(new ICaptureStatusListener() {
@OverRide
public void onCaptureCountChanged(int captureCount) { Log.e("1====", "1"); }

@Override
public void onCaptureStarting() { Log.e("1====", "2"); }

@Override
public void onCaptureStopping() { Log.e("1====", "3"); }

public void onFileSaving() { Log.e("1====", "4"); }

@Override
public void onCaptureTimeChanged(long captureTime) { Log.e("1====", "5"); }

@Override
public void onCaptureWorking() { Log.e("1====", "6"); }

@Override
public void onCaptureFinish(String[] filePaths) { Log.e("1====", "7"); }

@Override
public void onCaptureError(int errorCode) { Log.e("1====", "8"); }

});

InstaCameraManager.getInstance().startNormalCapture();

I am working with the Insta360 ONE X2 Camera. The code should be straightforward: connect to Wi-Fi, set the camera type, and capture. However, I have spent 3 days trying to get this working and am stuck.

Can anyone provide guidance or a working example for SDK 1.8.1_build_06?

Thanks you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions