VideoLoadEvent
A Video's load event, with the duration (null for a live stream), currentTime and naturalSize in pixels.
Utilização
Display a video with native controls.
Este tipo é usado por 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" />;Declaração do tipo
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 };
}
>;Membros 6
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "load" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
duration | number | Sim | Seconds; null for a live stream. |
currentTime | number | Sim | — |
naturalSize | { width: number; height: number;} | Sim | The picture's size in pixels. |
naturalSize — campos aninhados
naturalSize campos
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
width | number | Sim | — |
height | number | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.