Home > hls.js > BufferController

BufferController class

Signature:

export default class BufferController implements ComponentAPI 

Implements: ComponentAPI

Constructors

Constructor Modifiers Description
(constructor)(hls) Constructs a new instance of the BufferController class

Properties

Property Modifiers Type Description
appendErrors { audio: number; video: number; audiovideo: number; }
bufferCodecEventsExpected number
error protected (msg: any, obj?: any) => void
log protected (msg: any) => void
media HTMLMediaElement | null
mediaSource MediaSource | null
pendingTracks TrackSet
sourceBuffer SourceBuffers
tracks TrackSet
warn protected (msg: any, obj?: any) => void

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