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

SubtitleTrackController

Extends:

EventHandler → SubtitleTrackController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

media: *

public
public
public
public get

get index of the selected subtitle track (index in subtitle track lists) *

public set

select a subtitle track, based on its index in subtitle track lists*

public get

get alternate subtitle tracks list from playlist *

public

timer: *

public
public

trackId: *

public

tracks: *[]

public

Method Summary

Public Methods
public
public

onManifestLoaded(data: *)

public
public

onMediaAttached(data: *)

public
public
public

onTick()

public
Private Methods
private

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

Public Constructors

public constructor() source

Override:

EventHandler#constructor

Public Members

public media: * source

public queuedDefaultTrack: * source

public subtitleDisplay: boolean source

public subtitlePollingInterval: * source

public get subtitleTrack: * source

get index of the selected subtitle track (index in subtitle track lists) *

public set subtitleTrack source

select a subtitle track, based on its index in subtitle track lists*

public get subtitleTracks: * source

get alternate subtitle tracks list from playlist *

public timer: * source

public trackChangeListener: * source

public trackId: * source

public tracks: *[] source

public useTextTrackPolling: * source

Public Methods

public destroy() source

Override:

EventHandler#destroy

public onManifestLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onManifestLoading() source

public onMediaAttached(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

public onSubtitleTrackLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onTick() source

public setSubtitleTrackInternal(newId: *) source

Params:

NameTypeAttributeDescription
newId *

Private Methods

private _onTextTracksChanged() source