MediaTrack
A type that represents a media track, such as a language track or closed caption text track in a video.
Hierarchy
- MediaTrack
Index
Properties
Properties
Optional
contentId
• contentId? : undefined | string
The content ID (URI) of the media track.
Optional
contentType
• contentType? : undefined | string
The content type (MIME type) of the media track, or undefined
if none was specified.
Optional
customData
• customData? : undefined | object
The custom data object for this media track, or undefined
if none was specified.
id
• id: number
The unique ID of the media track. Used for setting activeTrackIds
.
Optional
language
• language? : undefined | string
The language of this media track in RFC-5464 format, or undefined
if none was specified. Required for subtitles
type but optional otherwise.
Optional
name
• name? : undefined | string
The name of the media track, or undefined
if none was specified.
Optional
subtype
• subtype? : "captions" | "chapters" | "descriptions" | "metadata" | "subtitles"
The text track's subtype; applies only to text tracks. One of captions
, chapters
, descriptions
, metadata
, subtitles
.
type
• type: "audio" | "text" | "video"
The type of the track. One of audio
, text
, video
.