Skip to content

Issue with getMediaTime() always returning constant value #152

@AdelKanso

Description

@AdelKanso

Hello INSTA team,

I’m currently integrating your Android SDK with the goal of synchronizing camera timestamps with GNSS data.

I am using the following API:

InstaCameraManager.getInstance().getMediaTime()

According to the documentation and your previous clarification, this value should represent the camera system time (time since power-on, with microsecond precision for X5).

However, I am observing unexpected behavior:

getMediaTime() always returns the same constant value (e.g., 759482 or similar)
The value does not change over time, even when calling it repeatedly with delays
The value only changes after disconnecting and reconnecting the camera (i.e., starting a new session)
During photo capture (startNormalCapture()), the value still does not update
Even when attempting to read it inside capture-related logic, it remains constant

This makes it impossible to use getMediaTime() as a continuously increasing timestamp or to synchronize it with external GNSS time.

Could you please clarify:

Is getMediaTime() expected to be a continuously increasing clock (e.g., since boot)?
Should it only update during specific operations (e.g., recording, preview, etc.)?
Is there a required setup or mode (preview/streaming) for this value to update?
Or could this behavior indicate a bug or limitation in the SDK?

My goal is to obtain a reliable camera-side timestamp at the moment of capture in order to align it with GNSS UTC time.

If there is a recommended method (e.g., another API or metadata field) to retrieve accurate capture timestamps, I would greatly appreciate your guidance.

Note: My connection type is by WIFI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions