Constructor

Track

new Track(trackId, trackType)

Parameter

trackId

number

Unique identifier for the track.

trackType

cast.framework.messages.TrackType

The type of track.

Value must not be null.

Properties

customData

(non-null Object or undefined)

Custom data set by the receiver application.

language

(non-null string or undefined)

Language tag as per RFC 5646 (If subtype is “SUBTITLES” it is mandatory).

name

(non-null string or undefined)

A descriptive, human readable name for the track. For example "Spanish".

subtype

(non-null string or undefined)

For text tracks, the type of text track.

trackContentId

(non-null string or undefined)

It can be the url of the track or any other identifier that allows the receiver to find the content (when the track is not inband or included in the manifest). For example it can be the url of a vtt file.

trackContentType

(non-null string or undefined)

It represents the MIME type of the track content. For example if the track is a vtt file it will be ‘text/vtt’. This field is needed for out of band tracks, so it is usually provided if a trackContentId has also been provided. It is not mandatory if the receiver has a way to identify the content from the trackContentId, but recommended. The track content type, if provided, must be consistent with the track type.

trackId

number

Unique identifier of the track within the context of a MediaInformation object.

type

non-null cast.framework.messages.TrackType

The type of track.