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

AudioTrackController

Extends:

src/controller/base-playlist-controller.js~BasePlaylistController → AudioTrackController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public set
public get
public

groupId: *

public
public
public
public
public

tracks: *

public

Method Summary

Public Methods
public
public
public

loadPlaylist(hlsUrlParameters: HlsUrlParameters)

public

onAudioTrackLoaded(event: undefined, data: AudioTrackLoadedData)

public

onError(event: undefined, data: ErrorData)

public

onLevelLoading(event: undefined, data: LevelLoadingData)

public

onLevelSwitching(event: undefined, data: LevelSwitchingData)

public
public

onManifestParsed(event: undefined, data: ManifestParsedData)

public
public
public
public

switchLevel(levelIndex: number)

public

Public Constructors

public constructor() source

Public Members

public get audioTrack: number source

public set audioTrack: number source

public get audioTracks: * source

public groupId: * source

public retryCount: number source

public selectDefaultTrack: boolean source

public trackId: number source

public trackName: string source

public tracks: * source

public tracksInGroup: * source

Public Methods

public destroy() source

public findTrackId(name: string): number source

Params:

NameTypeAttributeDescription
name string

Return:

number

public loadPlaylist(hlsUrlParameters: HlsUrlParameters) source

Params:

NameTypeAttributeDescription
hlsUrlParameters HlsUrlParameters

public onAudioTrackLoaded(event: undefined, data: AudioTrackLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data AudioTrackLoadedData

public onError(event: undefined, data: ErrorData) source

Params:

NameTypeAttributeDescription
event undefined
data ErrorData

public onLevelLoading(event: undefined, data: LevelLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data LevelLoadingData

public onLevelSwitching(event: undefined, data: LevelSwitchingData) source

Params:

NameTypeAttributeDescription
event undefined
data LevelSwitchingData

public onManifestLoading() source

public onManifestParsed(event: undefined, data: ManifestParsedData) source

Params:

NameTypeAttributeDescription
event undefined
data ManifestParsedData

public registerListeners() source

public selectInitialTrack() source

public setAudioTrack(newId: number) source

Params:

NameTypeAttributeDescription
newId number

public switchLevel(levelIndex: number) source

Params:

NameTypeAttributeDescription
levelIndex number

public unregisterListeners() source