Home > hls.js > BufferController

BufferController class

Signature:

export default class BufferController extends Logger implements ComponentAPI 

Extends: Logger

Implements: ComponentAPI

Constructors

Constructor

Modifiers

Description

(constructor)(hls, fragmentTracker)

Constructs a new instance of the BufferController class

Properties

Property

Modifiers

Type

Description

bufferedToEnd

readonly

boolean

media

HTMLMediaElement | null

mediaSource

MediaSource | null

sourceBufferTracks

readonly

BaseTrackSet

Methods

Method

Modifiers

Description

appendChangeType(type, container, codec)

protected

checkPendingTracks()

protected

destroy()

hasSourceTypes()

onBufferAppending(event, eventData)

protected

onBufferCodecs(event, data)

protected

onBufferEos(event, data)

protected

onBufferFlushing(event, data)

protected

onBufferReset()

protected

onFragParsed(event, data)

protected

onLevelUpdated(event, { details })

protected

onManifestParsed(event, data)

protected

onMediaAttaching(event, data)

protected

onMediaDetaching(event, data)

protected

registerListeners()

protected

transferMedia()

unregisterListeners()

protected