import AudioStreamController from 'hls.js/src/controller/audio-stream-controller.ts'
AudioStreamController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
fragCurrent: * |
|
public |
|
|
public |
fragPrevious: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
levels: * |
|
public |
|
|
public |
mainDetails: * |
|
public |
mediaBuffer: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
state: * |
|
public |
|
|
public |
transmuxer: * |
|
public |
videoBuffer: * |
|
public |
|
|
public |
waitingData: * |
|
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
doTick() |
|
public |
|
|
public |
loadFragment(frag: Fragment, trackDetails: LevelDetails, 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 |
|
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 fragCurrent: * source
public fragPrevious: * source
public fragmentLoader: * 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 transmuxer: * source
public videoBuffer: * source
public waitingData: * source
Public Methods
public clearWaitingFragment() source
public completeAudioSwitch() source
public doTick() source
public doTickIdle() source
public loadFragment(frag: Fragment, trackDetails: LevelDetails, targetBufferTime: number) source
Params:
Name | Type | Attribute | Description |
frag | Fragment | ||
trackDetails | LevelDetails | ||
targetBufferTime | 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 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 startLoad(startPosition: undefined) source
Params:
Name | Type | Attribute | Description |
startPosition | undefined |
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 |