Interface

UseTimelinePlaybackResult

Result returned by `useTimelinePlayback`.

Signature

Type Definition
Interface UseTimelinePlaybackResult

Properties

NameSignatureDescription
clearInOutPoints(): TimelineCommandResultClears both in and out points.
inPointinPoint: RationalTime | undefinedCurrent in point, when set.
outPointoutPoint: RationalTime | undefinedCurrent out point, when set.
pause(): TimelineCommandResultPauses timeline playback.
play(options?: PlaybackOptions): TimelineCommandResultStarts timeline playback.
playbackRateplaybackRate: numberCurrent playback speed multiplier.
playingplaying: booleanWhether the timeline is currently playing.
setInPoint(time?: RationalTime): TimelineCommandResultSets the in point to a supplied time or the current playhead.
setOutPoint(time?: RationalTime): TimelineCommandResultSets the out point to a supplied time or the current playhead.
setPlaybackRate(rate: number): TimelineCommandResultSets the playback speed multiplier.
setPlayheadTime(time: RationalTime): TimelineCommandResultMoves the playhead to an absolute time.
stepBackward(amountSeconds?: number): TimelineCommandResultMoves the playhead backward by a number of seconds.
stepForward(amountSeconds?: number): TimelineCommandResultAdvances the playhead by a number of seconds.
togglePlayback(): TimelineCommandResultStarts playback when paused, or pauses playback when playing.