VideoPlaybackStateEvent
A Video's playbackStateChange event: isPlaying, the currentTime in seconds and the playback rate.
Usage
Display a video with native controls.
This type is used by Video
// Display a video with native controls.
import { Video } from 'kuito';
<Video src={{ uri: 'https://example.com/waves.mp4' }} height={320} muted loop objectFit="cover" />;Type declaration
export type VideoPlaybackStateEvent = NativeViewEvent<
'playbackStateChange',
{
isPlaying: boolean;
/** Seconds, as the state changed. */
currentTime: number;
/** The speed it plays at; 1 is normal. */
rate: number;
}
>;Members 6
| Name | Type | Required | Description |
|---|---|---|---|
type | "playbackStateChange" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
isPlaying | boolean | Yes | — |
currentTime | number | Yes | Seconds, as the state changed. |
rate | number | Yes | The speed it plays at; 1 is normal. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.