VideoErrorEvent
A Video's error event, with the failure's code and message.
Utilização
Play a streamed trailer with native controls
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
export type VideoErrorEvent = NativeViewEvent<'error', { code: string; message: string }>;Membros 5
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "error" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
code | string | Sim | — |
message | string | Sim | — |
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.