Usage

Play a streamed trailer with native controls

tsx
import { Video } from 'kuito';

export default function Trailer() {
  return (
    <Video
      src={{ uri: 'https://example.com/trailer/master.m3u8' }}
      height={220}
      controls
      onError={(event) => console.log(event.code, event.message)}
    />
  );
}

Type declaration

ts
export type VideoErrorEvent = NativeViewEvent<'error', { code: string; message: string }>;

Members 5

NameTypeRequiredDescription
type"error"Yes—
targetunknownYes—
isTrustedbooleanYes—
codestringYes—
messagestringYes—
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.