import AudioStreamController from 'hls.js/src/controller/audio-stream-controller.ts'
AudioStreamController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
fragCurrent: * |
|
public |
|
|
public |
fragPrevious: * |
|
public |
|
|
public |
|
|
public |
levels: * |
|
public |
|
|
public |
mainDetails: * |
|
public |
mediaBuffer: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
state: * |
|
public |
|
|
public |
videoBuffer: * |
|
public |
|
|
public |
waitingData: * |
|
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
doTick() |
|
public |
|
|
public |
getMaxBufferLength(mainBufferLength: number): number |
|
public |
loadFragment(frag: Fragment, track: Level, targetBufferTime: number) |
|
public |
onAudioTrackLoaded(event: undefined, data: TrackLoadedData) |
|
public |
onAudioTrackSwitching(event: undefined, data: AudioTrackSwitchingData) |
|
public |
onAudioTracksUpdated(event: undefined, undefined: AudioTracksUpdatedData) |
|
public |
onBufferCreated(event: undefined, data: BufferCreatedData) |
|
public |
onBufferFlushed(event: undefined, undefined: BufferFlushedData) |
|
public |
|
|
public |
|
|
public |
onFragBuffered(event: undefined, data: FragBufferedData) |
|
public |
|
|
public |
onInitPtsFound(event: undefined, undefined: InitPTSFoundData) |
|
public |
onLevelLoaded(event: undefined, data: LevelLoadedData) |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Private Methods | ||
private |
_bufferInitSegment(tracks: TrackSet, frag: Fragment, chunkMeta: ChunkMetadata) |
|
private |
_handleFragmentLoadComplete(fragLoadedData: FragLoadedData) |
|
private |
_handleFragmentLoadProgress(data: FragLoadedData) |
|
private |
_handleTransmuxComplete(transmuxResult: TransmuxerResult) |
|
private |
|
|
private |
|
Public Constructors
public constructor() source
Public Members
public cachedTrackLoadedData: * source
public fragCurrent: * source
public fragPrevious: * source
public lastCurrentTime: * source
public levelLastLoaded: * source
public levels: * source
public mainDetails: * source
public mediaBuffer: * source
public nextLoadPosition: * source
public startPosition: * source
public state: * source
public videoBuffer: * source
public waitingData: * source
Public Methods
public clearWaitingFragment() source
public completeAudioSwitch() source
public doTick() source
public doTickIdle() source
public getMaxBufferLength(mainBufferLength: number): number source
Params:
Name | Type | Attribute | Description |
mainBufferLength | number |
public onAudioTrackLoaded(event: undefined, data: TrackLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | TrackLoadedData |
public onAudioTrackSwitching(event: undefined, data: AudioTrackSwitchingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | AudioTrackSwitchingData |
public onAudioTracksUpdated(event: undefined, undefined: AudioTracksUpdatedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | AudioTracksUpdatedData |
public onBufferCreated(event: undefined, data: BufferCreatedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | BufferCreatedData |
public onBufferFlushed(event: undefined, undefined: BufferFlushedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | BufferFlushedData |
public onBufferReset() source
public onError(event: undefined, data: ErrorData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ErrorData |
public onFragBuffered(event: undefined, data: FragBufferedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragBufferedData |
public onHandlerDestroying() source
public onInitPtsFound(event: undefined, undefined: InitPTSFoundData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | InitPTSFoundData |
public onLevelLoaded(event: undefined, data: LevelLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | LevelLoadedData |
public onManifestLoading() source
public onMediaDetaching() source
public onTickEnd() source
public resetLoadingState() source
public startLoad(startPosition: number) source
Params:
Name | Type | Attribute | Description |
startPosition | number |
Private Methods
private _bufferInitSegment(tracks: TrackSet, frag: Fragment, chunkMeta: ChunkMetadata) source
Params:
Name | Type | Attribute | Description |
tracks | TrackSet | ||
frag | Fragment | ||
chunkMeta | ChunkMetadata |
private _handleFragmentLoadComplete(fragLoadedData: FragLoadedData) source
Params:
Name | Type | Attribute | Description |
fragLoadedData | FragLoadedData |
private _handleFragmentLoadProgress(data: FragLoadedData) source
Params:
Name | Type | Attribute | Description |
data | FragLoadedData |
private _handleTransmuxComplete(transmuxResult: TransmuxerResult) source
Params:
Name | Type | Attribute | Description |
transmuxResult | TransmuxerResult |