Utilização

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)}
    />
  );
}

Declaração do tipo

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

Membros 5

NomeTipoObrigatórioDescrição
type"error"Sim—
targetunknownSim—
isTrustedbooleanSim—
codestringSim—
messagestringSim—
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.