interface PlayerTimeValue

Provided by PlayerProvider through PlayerTimeContext, apart from the rest because it changes several times a second while something plays. Only what draws a position, like the dump page's audio preview, reads it, so the cards that read PlayerContext don't re-render with it.

Properties

In seconds.

duration: number

In seconds, 0 until the media's metadata loads.

Usage

import { type PlayerTimeValue } from "src/contexts/player/PlayerContext.ts";