Returns the start and end time of the player's clip, automatically updating whenever it changes.
Without a clip, the start time is 0 and the end time is Infinity.
Note that useDuration and useCurrentTime are not relative to the clip.
This hook must only be used in a component mounted inside a DefaultUI or UIContainer,
or alternatively any other component that provides a PlayerContext.
Returns the start and end time of the player's clip, automatically updating whenever it changes.
Without a clip, the start time is 0 and the end time is
Infinity. Note that useDuration and useCurrentTime are not relative to the clip.This hook must only be used in a component mounted inside a DefaultUI or UIContainer, or alternatively any other component that provides a PlayerContext.