Home Reference Source
import BufferController from 'hls.js/src/controller/buffer-controller.js'
public class | source

BufferController

Extends:

EventHandler → BufferController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public

flushRange: *[]

public

media: *

public
public

onmsc: *

public

onmse: *

public

onmso: *

public

onsbe: *

public

onsbue: *

public

parent: *

public
public

segments: *[]

public
public
public

tracks: {}

Private Members
private
private

_live: *

private
private
private
private

Method Summary

Public Methods
public
public
public

createSourceBuffers(tracks: *)

public
public
public
public

flushBuffer(startOffset: *, endOffset: *, typeIn: *): boolean

public
public
public

onBufferCodecs(tracks: *)

public

onBufferEos(data: *)

public

onBufferFlushing(data: *)

public
public
public

onLevelUpdated(objectPattern: {"details": *})

public

onManifestParsed(data: *)

public

onMediaAttaching(data: *)

public
public
public
public
public
public

onSBUpdateError(event: *)

public

Update Media Source duration to current level duration or override to Infinity if configuration parameter 'liveDurationInfinityis set totrue` More details: https://github.com/video-dev/hls.js/issues/355

Inherited Summary

From class EventHandler
public
public

hls: *

public
public
public
public

onEvent(event: *, data: *)

arguments: event (string), data (any)

public

onEventGeneric(event: *, data: *)

public
public
public
public

Public Constructors

public constructor() source

Override:

EventHandler#constructor

Public Members

public appendError: number source

public appended: number source

public appending: boolean source

public audioTimestampOffset: * source

public flushBufferCounter: number source

public flushRange: *[] source

public media: * source

public mediaSource: * source

public onmsc: * source

public onmse: * source

public onmso: * source

public onsbe: * source

public onsbue: * source

public parent: * source

public pendingTracks: {} source

public segments: *[] source

public sourceBuffer: {} source

public sourceBufferNb: * source

public tracks: {} source

Private Members

private _levelDuration: * source

private _live: * source

private _msDuration: * source

private _needsEos: boolean source

private _needsFlush: boolean source

private _objectUrl: * source

Public Methods

public checkEos() source

public checkPendingTracks() source

public createSourceBuffers(tracks: *) source

Params:

NameTypeAttributeDescription
tracks *

public destroy() source

Override:

EventHandler#destroy

public doAppending() source

public doFlush() source

public flushBuffer(startOffset: *, endOffset: *, typeIn: *): boolean source

Params:

NameTypeAttributeDescription
startOffset *
endOffset *
typeIn *

Return:

boolean

public onBufferAppendFail(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferAppending(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferCodecs(tracks: *) source

Params:

NameTypeAttributeDescription
tracks *

public onBufferEos(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferFlushing(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferReset() source

public onLevelPtsUpdated(data: *) source

Params:

NameTypeAttributeDescription
data *

public onLevelUpdated(objectPattern: {"details": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"details": *}
  • default: {"details":null}

public onManifestParsed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaAttaching(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

public onMediaSourceClose() source

public onMediaSourceEnded() source

public onMediaSourceOpen() source

public onSBUpdateEnd() source

public onSBUpdateError(event: *) source

Params:

NameTypeAttributeDescription
event *

public updateMediaElementDuration() source

Update Media Source duration to current level duration or override to Infinity if configuration parameter 'liveDurationInfinityis set totrue` More details: https://github.com/video-dev/hls.js/issues/355