VideoErrorEvent
A Video's error event, with the failure's code and message.
Usage
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)}
/>
);
}Type declaration
export type VideoErrorEvent = NativeViewEvent<'error', { code: string; message: string }>;Members 5
| Name | Type | Required | Description |
|---|---|---|---|
type | "error" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
code | string | Yes | — |
message | string | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.