R
I

UseMediaTextTrackSource

testeddemo

A text track `<track>` descriptor injected as a child `<track>` element.

Demo

Loading demo…

Signature

ts
interface UseMediaTextTrackSource

Properties

PropertyTypeDescription
default?boolean | undefinedMark the track as enabled unless the user's preferences indicate another is preferred
kindTextTrackKindHow the text track is meant to be used. Defaults to `subtitles` when omitted.
labelstringA user-readable title used by the browser when listing tracks
srcstringAddress of the track (`.vtt` file). Must be same-origin as the document.
srcLangstringLanguage of the track text data. A valid BCP 47 language tag.