BufferController
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
details: * |
|
public |
hls: * |
|
public |
listeners: {"audio": *, "video": *, "audiovideo": *} |
|
public |
media: * |
|
public |
mediaSource: * |
|
public |
|
|
public |
pendingTracks: TrackSet |
|
public |
sourceBuffer: {} |
|
public |
tracks: TrackSet |
Private Members | ||
private |
|
|
private |
_objectUrl: * |
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
addBufferListener(type: SourceBufferName, event: string, fn: Function) |
|
public |
appendChangeType(type: undefined, mimeType: undefined) |
|
public |
appendExecutor(data: Uint8Array, type: SourceBufferName) |
|
public |
blockBuffers(onUnblocked: Function, buffers: Array) |
|
public |
|
|
public |
createSourceBuffers(tracks: TrackSet) |
|
public |
destroy() |
|
public |
|
|
public |
|
|
public |
onBufferAppending(event: undefined, eventData: BufferAppendingData) |
|
public |
onBufferCodecs(event: undefined, data: BufferCodecsData) |
|
public |
onBufferEos(event: undefined, data: BufferEOSData) |
|
public |
onBufferFlushing(event: undefined, data: BufferFlushingData) |
|
public |
|
|
public |
onFragParsed(event: undefined, data: FragParsedData) |
|
public |
onLevelUpdated(event: undefined, undefined: LevelUpdatedData) |
|
public |
onManifestParsed(event: undefined, data: ManifestParsedData) |
|
public |
onMediaAttaching(event: undefined, data: MediaAttachingData) |
|
public |
|
|
public |
|
|
public |
removeBufferListeners(type: SourceBufferName) |
|
public |
removeExecutor(type: SourceBufferName, startOffset: number, endOffset: number) |
|
public |
|
|
public |
Update Media Source duration to current level duration or override to Infinity if configuration parameter
'liveDurationInfinity |
|
public |
updateSeekableRange(levelDetails: undefined) |
Private Methods | ||
private |
|
|
private |
_onSBUpdateEnd(type: SourceBufferName) |
|
private |
_onSBUpdateError(type: SourceBufferName, event: Event) |
|
private |
_onSBUpdateStart(type: SourceBufferName) |
Public Constructors
public constructor() source
Public Members
public details: * source
public hls: * source
public listeners: {"audio": *, "video": *, "audiovideo": *} source
public media: * source
public mediaSource: * source
public operationQueue: * source
public pendingTracks: TrackSet source
public sourceBuffer: {} source
public tracks: TrackSet source
Private Members
private _objectUrl: * source
private _onMediaSourceClose: * source
private _onMediaSourceEnded: * source
private _onMediaSourceOpen: * source
Public Methods
public appendExecutor(data: Uint8Array, type: SourceBufferName) source
Params:
Name | Type | Attribute | Description |
data | Uint8Array | ||
type | SourceBufferName |
public checkPendingTracks() source
public createSourceBuffers(tracks: TrackSet) source
Params:
Name | Type | Attribute | Description |
tracks | TrackSet |
public destroy() source
public flushLiveBackBuffer() source
public onBufferAppending(event: undefined, eventData: BufferAppendingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
eventData | BufferAppendingData |
public onBufferCodecs(event: undefined, data: BufferCodecsData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | BufferCodecsData |
public onBufferEos(event: undefined, data: BufferEOSData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | BufferEOSData |
public onBufferFlushing(event: undefined, data: BufferFlushingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | BufferFlushingData |
public onBufferReset() source
public onFragParsed(event: undefined, data: FragParsedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragParsedData |
public onLevelUpdated(event: undefined, undefined: LevelUpdatedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | LevelUpdatedData |
public onManifestParsed(event: undefined, data: ManifestParsedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ManifestParsedData |
public onMediaAttaching(event: undefined, data: MediaAttachingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | MediaAttachingData |
public onMediaDetaching() source
public registerListeners() source
public removeBufferListeners(type: SourceBufferName) source
Params:
Name | Type | Attribute | Description |
type | SourceBufferName |
public unregisterListeners() source
public updateMediaElementDuration() source
Update Media Source duration to current level duration or override to Infinity if configuration parameter
'liveDurationInfinityis set to
true`
More details: https://github.com/video-dev/hls.js/issues/355
public updateSeekableRange(levelDetails: undefined) source
Params:
Name | Type | Attribute | Description |
levelDetails | undefined |
Private Methods
private _initSourceBuffer() source
private _onSBUpdateEnd(type: SourceBufferName) source
Params:
Name | Type | Attribute | Description |
type | SourceBufferName |
private _onSBUpdateError(type: SourceBufferName, event: Event) source
Params:
Name | Type | Attribute | Description |
type | SourceBufferName | ||
event | Event |
private _onSBUpdateStart(type: SourceBufferName) source
Params:
Name | Type | Attribute | Description |
type | SourceBufferName |