import AudioTrackController from 'hls.js/src/controller/audio-track-controller.ts'
AudioTrackController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
|
|
public set |
|
|
public get |
audioTracks: * |
|
public |
groupId: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
tracks: *[] |
|
public |
tracksInGroup: *[] |
Method Summary
Public Methods | ||
public |
destroy() |
|
public |
findTrackId(name: string): number |
|
public |
loadPlaylist(hlsUrlParameters: HlsUrlParameters) |
|
public |
onAudioTrackLoaded(event: undefined, data: AudioTrackLoadedData) |
|
public |
|
|
public |
onLevelLoading(event: undefined, data: LevelLoadingData) When a level is loading, if it has redundant audioGroupIds (in the same ordinality as it's redundant URLs) we are setting our audio-group ID internally to the one set, if it is different from the group ID currently set. If group-ID got update, we re-select the appropriate audio-track with this group-ID matching the currently selected one (based on NAME property). |
|
public |
|
|
public |
onManifestParsed(event: undefined, data: ManifestParsedData) |
|
public |
|
|
public |
|
|
public |
setAudioTrack(newId: number) |
|
public |
|
Public Constructors
public constructor() source
Public Members
public get audioTracks: * source
public groupId: * source
public tracks: *[] source
public tracksInGroup: *[] source
Public Methods
public destroy() source
public loadPlaylist(hlsUrlParameters: HlsUrlParameters) source
Params:
Name | Type | Attribute | Description |
hlsUrlParameters | HlsUrlParameters |
public onAudioTrackLoaded(event: undefined, data: AudioTrackLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | AudioTrackLoadedData |
public onError(event: undefined, data: ErrorData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ErrorData |
public onLevelLoading(event: undefined, data: LevelLoadingData) source
When a level is loading, if it has redundant audioGroupIds (in the same ordinality as it's redundant URLs) we are setting our audio-group ID internally to the one set, if it is different from the group ID currently set.
If group-ID got update, we re-select the appropriate audio-track with this group-ID matching the currently selected one (based on NAME property).
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | LevelLoadingData |
public onManifestLoading() source
public onManifestParsed(event: undefined, data: ManifestParsedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ManifestParsedData |