Home Reference Source
import SubtitleStreamController from 'hls.js/src/controller/subtitle-stream-controller.js'
public class | source

SubtitleStreamController

Extends:

EventHandlerTaskLoop → SubtitleStreamController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

config: *

public
public
public
public
public

state: *

public

tracks: *

public
public

Method Summary

Public Methods
public
public

doTick()

public
public

onError(data: *)

public

onFragLoaded(data: *)

public
public
public
public
public
public
public

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
From class TaskLoop
private
private
public
public
public abstract

doTick()

For subclass to implement task logic

public
public
public

tick(forceAsync: Wether to force async): boolean

Public Constructors

public constructor() source

Override:

TaskLoop#constructor

Public Members

public config: * source

public currentTrackId: * source

public currentlyProcessing: * source

public decrypter: * source

public fragCurrent: * source

public state: * source

public tracks: * source

public vttFragQueues: * source

public vttFragSNsProcessed: {} source

Public Methods

public clearVttFragQueues() source

public doTick() source

For subclass to implement task logic

Override:

TaskLoop#doTick

public nextFrag() source

public onError(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onHandlerDestroyed() source

Override:

EventHandler#onHandlerDestroyed

public onKeyLoaded() source

public onMediaAttached() source

public onSubtitleFragProcessed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onSubtitleTrackLoaded() source

public onSubtitleTrackSwitch(data: *) source

Params:

NameTypeAttributeDescription
data *

public onSubtitleTracksUpdated(data: *) source

Params:

NameTypeAttributeDescription
data *