Home > hls.js > SubtitleStreamController

SubtitleStreamController class

Signature:

export declare class SubtitleStreamController extends BaseStreamController implements NetworkComponentAPI 

Extends: BaseStreamController

Implements: NetworkComponentAPI

Constructors

Constructor Modifiers Description
(constructor)(hls, fragmentTracker, keyLoader) Constructs a new instance of the SubtitleStreamController class

Properties

Property Modifiers Type Description
levels protected Array<Level>
mediaBufferTimeRanges readonly Bufferable

Methods

Method Modifiers Description
_handleFragmentLoadComplete(fragLoadedData)
doTick()
getMaxBufferLength(mainBufferLength) protected
loadFragment(frag, level, targetBufferTime) protected
onBufferFlushing(event, data)
onError(event, data)
onFragBuffered(event, data)
onHandlerDestroying() protected
onLevelLoaded(event, data)
onManifestLoading()
onSubtitleFragProcessed(event, data)
onSubtitleTrackLoaded(event, data)
onSubtitleTracksUpdated(event, { subtitleTracks })
onSubtitleTrackSwitch(event, data)
startLoad(startPosition)