VideoPlaybackStateEvent
A Video's playbackStateChange event: isPlaying, the currentTime in seconds and the playback rate.
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 VideoPlaybackStateEvent = NativeViewEvent<
'playbackStateChange',
{
isPlaying: boolean;
/** Seconds, as the state changed. */
currentTime: number;
/** The speed it plays at; 1 is normal. */
rate: number;
}
>;Membros 6
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "playbackStateChange" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
isPlaying | boolean | Sim | — |
currentTime | number | Sim | Seconds, as the state changed. |
rate | number | Sim | The speed it plays at; 1 is normal. |
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.