VideoLoadEvent
A Video's load event, with the duration (null for a live stream), currentTime and naturalSize in pixels.
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 VideoLoadEvent = NativeViewEvent<
'load',
{
/** Seconds; null for a live stream. */
duration: number | null;
currentTime: number;
/** The picture's size in pixels. */
naturalSize: { width: number; height: number };
}
>;Members 6
| Name | Type | Required | Description |
|---|---|---|---|
type | "load" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
duration | number | Yes | Seconds; null for a live stream. |
currentTime | number | Yes | — |
naturalSize | { width: number; height: number;} | Yes | The picture's size in pixels. |
naturalSize — nested fields
naturalSize fields
| Name | Type | Required | Description |
|---|---|---|---|
width | number | Yes | — |
height | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.