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 VideoPlaybackStateEvent = NativeViewEvent<
  'playbackStateChange',
  {
    isPlaying: boolean;
    /** Seconds, as the state changed. */
    currentTime: number;
    /** The speed it plays at; 1 is normal. */
    rate: number;
  }
>;

Members 6

NameTypeRequiredDescription
type"playbackStateChange"Yes—
targetunknownYes—
isTrustedbooleanYes—
isPlayingbooleanYes—
currentTimenumberYesSeconds, as the state changed.
ratenumberYesThe 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.