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

appendErrors

{ audio: number; video: number; audiovideo: number; }

bufferCodecEventsExpected

number

media

HTMLMediaElement | null

mediaSource

MediaSource | null

pendingTracks

TrackSet

sourceBuffer

SourceBuffers

tracks

TrackSet

Methods

Method

Modifiers

Description

appendChangeType(type, mimeType)

protected

checkPendingTracks()

protected

createSourceBuffers(tracks)

protected

destroy()

flushBackBuffer(currentTime, targetDuration, targetBackBufferPosition)

flushFrontBuffer(currentTime, targetDuration, targetFrontBufferPosition)

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()

protected

registerListeners()

protected

trimBuffers()

unregisterListeners()

protected