VideoProgressEvent
A Video's progress event, sent while playing: currentTime and the buffered playableDuration, in seconds.
Utilização
Display a video with native controls.
Este tipo é usado por Video
// Display a video with native controls.
import { Video } from 'kuito';
<Video src={{ uri: 'https://example.com/waves.mp4' }} height={320} muted loop objectFit="cover" />;Declaração do tipo
export type VideoProgressEvent = NativeViewEvent<
'progress',
{
currentTime: number;
/** How far the player has buffered, in seconds from the start. */
playableDuration: number;
}
>;Membros 5
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "progress" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
currentTime | number | Sim | — |
playableDuration | number | Sim | How far the player has buffered, in seconds from the start. |
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.