VideoPlaybackStateEvent
A Video's playbackStateChange event: isPlaying, the currentTime in seconds and the playback rate.
Verwendung
Display a video with native controls.
Dieser Typ wird verwendet von 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" />;Typdeklaration
export type VideoPlaybackStateEvent = NativeViewEvent<
'playbackStateChange',
{
isPlaying: boolean;
/** Seconds, as the state changed. */
currentTime: number;
/** The speed it plays at; 1 is normal. */
rate: number;
}
>;Mitglieder 6
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
type | "playbackStateChange" | Ja | — |
target | unknown | Ja | — |
isTrusted | boolean | Ja | — |
isPlaying | boolean | Ja | — |
currentTime | number | Ja | Seconds, as the state changed. |
rate | number | Ja | The speed it plays at; 1 is normal. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.