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 VideoProgressEvent = NativeViewEvent<
  'progress',
  {
    currentTime: number;
    /** How far the player has buffered, in seconds from the start. */
    playableDuration: number;
  }
>;

Members 5

NameTypeRequiredDescription
type"progress"Yes—
targetunknownYes—
isTrustedbooleanYes—
currentTimenumberYes—
playableDurationnumberYesHow far the player has buffered, in seconds from the start.
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.