Skip to main content

PlaybackStatus

class PlaybackStatus 

A read-only representation of the playback.

Constructors

constructor

public new PlaybackStatusplayback: PlaybackManager: PlaybackStatus

Parameters

Accessors

deltaTime

public get deltaTime(): number

The time passed since the last frame in seconds.


fps

public get fps(): number

frame

public get frame(): number

speed

public get speed(): number

state

public get state(): PlaybackState

time

public get time(): number

Methods

framesToSeconds

public framesToSecondsframes: number: number

Convert frames to seconds using the current framerate.

Parameters

  • frames: number

    The frames to convert.


secondsToFrames

public secondsToFramesseconds: number: number

Convert seconds to frames using the current framerate.

Parameters

  • seconds: number

    The seconds to convert.