Usage

Display a video with native controls.

This type is used by Video

tsx
// 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

ts
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

NameTypeRequiredDescription
type"load"Yes—
targetunknownYes—
isTrustedbooleanYes—
durationnumberYesSeconds; null for a live stream.
currentTimenumberYes—
naturalSize{ width: number; height: number;}YesThe picture's size in pixels.
naturalSize — nested fields

naturalSize fields

NameTypeRequiredDescription
widthnumberYes—
heightnumberYes—
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.