Skip to content

Timing object with frame counter representation #14

@Adam-Oudaimah-SCASE

Description

@Adam-Oudaimah-SCASE

Hello,
I am using this equation Math.floor(to.query().position * 20) to get the current frame number from a video.
The problem is that the position is not an integer number so I sometimes get the previous frame.
I know that the position, in this case, represents the currentTime of the video (which is a float number) that why I'm getting this error.
Is there a way to make the position in the TimingObject to represent the frame number?

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