Functions
useVreoAction
- useVreoAction(): { dispose: () => void; hide: () => void; load: (vreoUnit: VreoUnit, currentTime?: number) => Promise<boolean>; pause: () => void; play: () => boolean; show: () => void }
Returns { dispose: () => void; hide: () => void; load: (vreoUnit: VreoUnit, currentTime?: number) => Promise<boolean>; pause: () => void; play: () => boolean; show: () => void }
dispose: () => void
hide: () => void
load: (vreoUnit: VreoUnit, currentTime?: number) => Promise<boolean>
- (vreoUnit: VreoUnit, currentTime?: number): Promise<boolean>
Parameters
Optional currentTime: number
Returns Promise<boolean>
pause: () => void
play: () => boolean
show: () => void
useVreoEventCallback
- useVreoEventCallback<T>(name: T, callback: VreoKeyframeEvent[T], deps?: DependencyList): void
Type parameters
Parameters
name: T
Optional deps: DependencyList
Returns void
useVreoPausedState
- useVreoPausedState(): boolean