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

SubtitleStreamController

Extends:

src/controller/base-stream-controller.js~BaseStreamController → SubtitleStreamController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public
public
public get

mediaBufferTimeRanges: Bufferable

public

state: *

public

Method Summary

Public Methods
public

doTick()

public

loadFragment(frag: Fragment, levelDetails: LevelDetails, targetBufferTime: number)

public

onBufferFlushing(event: undefined, data: BufferFlushingData)

public

onError(event: undefined, data: ErrorData)

public
public

onLevelLoaded(event: undefined, data: LevelLoadedData)

public
public

onSubtitleFragProcessed(event: undefined, data: SubtitleFragProcessed)

public

onSubtitleTrackLoaded(event: undefined, data: TrackLoadedData)

public

onSubtitleTrackSwitch(event: undefined, data: TrackSwitchedData)

public

onSubtitleTracksUpdated(event: undefined, undefined: SubtitleTracksUpdatedData)

public
Private Methods
private

_handleFragmentLoadComplete(fragLoadedData: FragLoadedData)

private
private

Public Constructors

public constructor() source

Public Members

public currentTrackId: number source

public fragCurrent: * source

public fragPrevious: * source

public levelLastLoaded: * source

public levels: Array source

public mainDetails: * source

public mediaBuffer: * source

public get mediaBufferTimeRanges: Bufferable source

public state: * source

public tracksBuffered: Array source

Public Methods

public doTick() source

public loadFragment(frag: Fragment, levelDetails: LevelDetails, targetBufferTime: number) source

Params:

NameTypeAttributeDescription
frag Fragment
levelDetails LevelDetails
targetBufferTime number

public onBufferFlushing(event: undefined, data: BufferFlushingData) source

Params:

NameTypeAttributeDescription
event undefined
data BufferFlushingData

public onError(event: undefined, data: ErrorData) source

Params:

NameTypeAttributeDescription
event undefined
data ErrorData

public onHandlerDestroying() source

public onLevelLoaded(event: undefined, data: LevelLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data LevelLoadedData

public onManifestLoading() source

public onSubtitleFragProcessed(event: undefined, data: SubtitleFragProcessed) source

Params:

NameTypeAttributeDescription
event undefined
data SubtitleFragProcessed

public onSubtitleTrackLoaded(event: undefined, data: TrackLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data TrackLoadedData

public onSubtitleTrackSwitch(event: undefined, data: TrackSwitchedData) source

Params:

NameTypeAttributeDescription
event undefined
data TrackSwitchedData

public onSubtitleTracksUpdated(event: undefined, undefined: SubtitleTracksUpdatedData) source

Params:

NameTypeAttributeDescription
event undefined
undefined SubtitleTracksUpdatedData

public startLoad() source

Private Methods

private _handleFragmentLoadComplete(fragLoadedData: FragLoadedData) source

Params:

NameTypeAttributeDescription
fragLoadedData FragLoadedData

private _registerListeners() source

private _unregisterListeners() source