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
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()
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() protected
onSubtitleTrackLoaded(event, data) protected