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

SubtitleStreamController

Extends:

src/task-loop.js~TaskLoopBaseStreamController → SubtitleStreamController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

config: *

public
public
public
public
public
public
public

media: *

public

state: *

public

tracks: *[]

public
Private Members
private

Method Summary

Public Methods
public

doTick()

public

onError(data: *)

public

onFragLoaded(data: *)

public
public

onLevelUpdated(objectPattern: {"details": *})

public

onMediaAttached(objectPattern: {"media": *})

public
public
public
public
public
public
public
Private Methods
private

Inherited Summary

From class BaseStreamController
public

demuxer: *

public
public
public
public
public
public
public

state: *

public

computeLivePosition(sliding: *, levelDetails: *): *

public

doTick()

public
public
public
public
public
public
private

_streamEnded(bufferInfo: *, levelDetails: *): boolean

Public Constructors

public constructor() source

Public Members

public config: * source

public currentTrackId: * source

public decrypter: * source

public fragCurrent: * source

Override:

BaseStreamController#fragCurrent

public fragPrevious: * source

Override:

BaseStreamController#fragPrevious

public fragmentTracker: * source

Override:

BaseStreamController#fragmentTracker

public lastAVStart: number source

public media: * source

public state: * source

Override:

BaseStreamController#state

public tracks: *[] source

public tracksBuffered: *[] source

Private Members

private _onMediaSeeking: * source

Public Methods

public doTick() source

Override:

BaseStreamController#doTick

public onError(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onKeyLoaded() source

public onLevelUpdated(objectPattern: {"details": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"details": *}
  • default: {"details":null}

public onMediaAttached(objectPattern: {"media": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"media": *}
  • default: {"media":null}

public onMediaDetaching() source

public onMediaSeeking() source

Override:

BaseStreamController#onMediaSeeking

public onSubtitleFragProcessed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onSubtitleTrackLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onSubtitleTrackSwitch(data: *) source

Params:

NameTypeAttributeDescription
data *

public onSubtitleTracksUpdated(data: *) source

Params:

NameTypeAttributeDescription
data *

public stopLoad() source

Override:

BaseStreamController#stopLoad

Private Methods

private _getBuffered(): * source

Return:

*