Home Reference Source
import AudioTrackController from 'hls.js/src/controller/audio-track-controller.js'
public class | source

AudioTrackController

Extends:

EventHandler → AudioTrackController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

get index of the selected audio track (index in audio track lists) *

public set

select an audio track, based on its index in audio track lists*

public get

get alternate audio tracks list from playlist *

public

ontick: *

public
public

timer: *

public

trackId: *

public

tracks: *[]

Method Summary

Public Methods
public
public
public

doTick()

public
public

onError(data: *)

public
public

onManifestParsed(data: *)

public
public

tick()

public

updateTrack(newId: *)

Inherited Summary

From class EventHandler
public
public

hls: *

public
public
public
public

onEvent(event: *, data: *)

arguments: event (string), data (any)

public

onEventGeneric(event: *, data: *)

public
public
public
public

Public Constructors

public constructor() source

Override:

EventHandler#constructor

Public Members

public get audioTrack: * source

get index of the selected audio track (index in audio track lists) *

public set audioTrack source

select an audio track, based on its index in audio track lists*

public get audioTracks: * source

get alternate audio tracks list from playlist *

public ontick: * source

public ticks: number source

public timer: * source

public trackId: * source

public tracks: *[] source

Public Methods

public cleanTimer() source

public destroy() source

Override:

EventHandler#destroy

public doTick() source

public onAudioTrackLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onError(data: *) source

Params:

NameTypeAttributeDescription
data *

public onManifestLoading() source

public onManifestParsed(data: *) source

Params:

NameTypeAttributeDescription
data *

public setAudioTrackInternal(newId: *) source

Params:

NameTypeAttributeDescription
newId *

public tick() source

public updateTrack(newId: *) source

Params:

NameTypeAttributeDescription
newId *