Skip to content

Timing object with frame counter representation #14

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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