BufferController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
config: * |
|
public |
|
|
public |
flushRange: *[] |
|
public |
media: * |
|
public |
mediaSource: * |
|
public |
parent: * |
|
public |
pendingTracks: TrackSet |
|
public |
segments: *[] |
|
public |
sourceBuffer: SourceBuffers |
|
public |
tracks: TrackSet |
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
_live: * |
|
private |
_msDuration: * |
|
private |
|
|
private |
|
|
private |
_objectUrl: * |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
checkEos() |
|
public |
|
|
public |
createSourceBuffers(tracks: TrackSet) |
|
public |
destroy() |
|
public |
|
|
public |
doFlush() |
|
public |
flushBuffer(startOffset: number, endOffset: number, sbType: SourceBufferName): boolean |
|
public |
|
|
public |
onBufferAppending(data: Segment) |
|
public |
onBufferCodecs(tracks: TrackSet) |
|
public |
onBufferEos(data: undefined) |
|
public |
onBufferFlushing(data: undefined) |
|
public |
|
|
public |
onLevelPtsUpdated(data: undefined) |
|
public |
onLevelUpdated(undefined: undefined) |
|
public |
onManifestParsed(data: undefined) |
|
public |
onMediaAttaching(data: undefined) |
|
public |
|
|
public |
removeBufferRange(type: string, sb: ExtendedSourceBuffer, startOffset: number, endOffset: number): boolean Removes first buffered range from provided source buffer that lies within given start and end offsets. |
|
public |
Update Media Source duration to current level duration or override to Infinity if configuration parameter
'liveDurationInfinity |
Public Constructors
public constructor() source
Public Members
public audioTimestampOffset: * source
public config: * source
public flushRange: *[] source
public media: * source
public mediaSource: * source
public parent: * source
public pendingTracks: TrackSet source
public segments: *[] source
public sourceBuffer: SourceBuffers source
public tracks: TrackSet source
Private Members
private _levelDuration: * source
private _live: * source
private _msDuration: * source
private _objectUrl: * source
private _onMediaSourceClose: * source
private _onMediaSourceEnded: * source
private _onMediaSourceOpen: * source
private _onSBUpdateEnd: * source
private _onSBUpdateError: * source
Public Methods
public checkEos() source
public checkPendingTracks() source
public createSourceBuffers(tracks: TrackSet) source
Params:
Name | Type | Attribute | Description |
tracks | TrackSet |
public destroy() source
public doAppending() source
public doFlush() source
public flushBuffer(startOffset: number, endOffset: number, sbType: SourceBufferName): boolean source
public flushLiveBackBuffer() source
public onBufferAppending(data: Segment) source
Params:
Name | Type | Attribute | Description |
data | Segment |
public onBufferCodecs(tracks: TrackSet) source
Params:
Name | Type | Attribute | Description |
tracks | TrackSet |
public onBufferReset() source
public onLevelPtsUpdated(data: undefined) source
Params:
Name | Type | Attribute | Description |
data | undefined |
public onLevelUpdated(undefined: undefined) source
Params:
Name | Type | Attribute | Description |
undefined | undefined |
public onMediaDetaching() source
public removeBufferRange(type: string, sb: ExtendedSourceBuffer, startOffset: number, endOffset: number): boolean source
Removes first buffered range from provided source buffer that lies within given start and end offsets.
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