VideoPlaybackStateEvent
A Video's playbackStateChange event: isPlaying, the currentTime in seconds and the playback rate.
Utilisation
Display a video with native controls.
Ce type est utilisé par 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" />;Déclaration du type
export type VideoPlaybackStateEvent = NativeViewEvent<
'playbackStateChange',
{
isPlaying: boolean;
/** Seconds, as the state changed. */
currentTime: number;
/** The speed it plays at; 1 is normal. */
rate: number;
}
>;Membres 6
| Nom | Type | Requis | Description |
|---|---|---|---|
type | "playbackStateChange" | Oui | — |
target | unknown | Oui | — |
isTrusted | boolean | Oui | — |
isPlaying | boolean | Oui | — |
currentTime | number | Oui | Seconds, as the state changed. |
rate | number | Oui | The speed it plays at; 1 is normal. |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.