Skip to content

Liveness VideoEndTimeStamp Used for Metrics is Incorrect #207

@tylerjroach

Description

@tylerjroach

Before creating a new issue, please confirm:

Which UI component?

Liveness

Gradle script dependencies

n/a

Environment information

n/a

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

https://github.com/aws-amplify/amplify-android/blob/6bbb8c466e274caee8dca674d1acb6e8cbe5e372/aws-predictions/src/main/java/com/amplifyframework/predictions/aws/http/LivenessWebSocket.kt#L475

videoEndTimestamp ends up being the start time of the last video chunk containing data. This last video chunk could range from 0-1 seconds of content, resulting in the timestamp being off. This value is only used for metrics, and does not impact the challenge, as the actual end is determined by sending the empty video event.

For metric purposes, we should look to adjust this timestamp to be the proper end time.

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglivenessThis issue relates to the Liveness component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions