videojs~videojs. AudioTrack

A representation of a single AudioTrack. If it is part of an AudioTrackList only one AudioTrack in the list will be enabled at a time.

Constructor

new AudioTrack(optionsopt)

Create an instance of this class.

Parameters:
NameTypeAttributesDefaultDescription
optionsObject<optional>
{}

Object of option names and values

Properties
NameTypeAttributesDefaultDescription
kindAudioTrack~Kind<optional>
''

A valid audio track kind

idstring<optional>
'vjs_track_' + Guid.newGUID()

A unique id for this AudioTrack.

labelstring<optional>
''

The menu label for this track.

languagestring<optional>
''

A valid two character language code.

enabledboolean<optional>

If this track is the one that is currently playing. If this track is part of an AudioTrackList, only one AudioTrack will be enabled.

See

Extends