import AudioTrackController from 'hls.js/src/controller/audio-track-controller.js'
AudioTrackController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
audioTrack: * 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 |
audioTracks: * get alternate audio tracks list from playlist * |
|
public |
ontick: * |
|
public |
|
|
public |
timer: * |
|
public |
trackId: * |
|
public |
tracks: *[] |
Method Summary
Public Methods | ||
public |
|
|
public |
destroy() |
|
public |
doTick() |
|
public |
onAudioTrackLoaded(data: *) |
|
public |
onError(data: *) |
|
public |
|
|
public |
onManifestParsed(data: *) |
|
public |
setAudioTrackInternal(newId: *) |
|
public |
tick() |
|
public |
updateTrack(newId: *) |
Inherited Summary
From class EventHandler | ||
public |
|
|
public |
hls: * |
|
public |
|
|
public |
destroy() |
|
public |
isEventHandler(): * |
|
public |
onEvent(event: *, data: *) arguments: event (string), data (any) |
|
public |
onEventGeneric(event: *, data: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
Public Members
public get audioTrack: * source
get index of the selected audio track (index in audio track lists) *
public ontick: * source
public timer: * source
public trackId: * source
public tracks: *[] source
Public Methods
public cleanTimer() source
public doTick() source
public onAudioTrackLoaded(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onError(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onManifestLoading() source
public onManifestParsed(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public setAudioTrackInternal(newId: *) source
Params:
Name | Type | Attribute | Description |
newId | * |
public tick() source
public updateTrack(newId: *) source
Params:
Name | Type | Attribute | Description |
newId | * |