I
UseMediaTextTrack
testeddemoA reactive snapshot of a single `TextTrack`.
Demo
Loading demo…
Signature
ts
interface UseMediaTextTrackProperties
| Property | Type | Description |
|---|---|---|
id | number | The index of the text track within the element's `textTracks` |
label | string | The text track label |
language | string | Language of the track text data (BCP 47) |
mode | TextTrackMode | The display mode of the text track: `disabled`, `hidden`, or `showing` |
kind | TextTrackKind | How the text track is meant to be used |
inBandMetadataTrackDispatchType | string | The track's in-band metadata track dispatch type |
cues | TextTrackCueList | null | A list of text track cues |
activeCues | TextTrackCueList | null | A list of active text track cues |