Home > hls.js > SubtitleTrackController

SubtitleTrackController class

Signature:

declare class SubtitleTrackController extends BasePlaylistController 

Extends: BasePlaylistController

Constructors

Constructor

Modifiers

Description

(constructor)(hls)

Constructs a new instance of the SubtitleTrackController class

Properties

Property

Modifiers

Type

Description

allSubtitleTracks

readonly

MediaPlaylist[]

subtitleDisplay

boolean

subtitleTrack

number

get/set index of the selected subtitle track (based on index in subtitle track lists) *

subtitleTracks

readonly

MediaPlaylist[]

get alternate subtitle tracks list from playlist *

Methods

Method

Modifiers

Description

destroy()

loadingPlaylist(currentTrack, hlsUrlParameters)

protected

loadPlaylist(hlsUrlParameters)

protected

onError(event, data)

protected

onLevelLoading(event, data)

protected

onLevelSwitching(event, data)

protected

onManifestLoading()

protected

onManifestParsed(event, data)

protected

onMediaAttached(event, data)

protected

onMediaDetaching(event, data)

protected

onSubtitleTrackLoaded(event, data)

protected

setSubtitleOption(subtitleOption)