Audio Tracks

These API calls are used to listen to or update the audio track if multiple audio tracks of a video are provided.These API calls are used to listen to or update the audio track if multiple audio tracks of a video are provided.

Endpoints



Events

MethodDescription
.on('audioTracks')Fired when the list of available audio tracks is updated. Happens shortly after a playlist item starts playing.
.on('audioTrackChanged')Fired when the active audio track is changed.

Happens in response to e.g. a user clicking the audio tracks menu or a script calling setCurrentAudioTrack().