import SubtitleTrackController from 'hls.js/src/controller/subtitle-track-controller.js'
SubtitleTrackController
Extends:
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 |
destroy() |
|
public |
onManifestLoaded(data: *) |
|
public |
|
|
public |
onMediaAttached(data: *) |
|
public |
|
|
public |
onSubtitleTrackLoaded(data: *) |
|
public |
onTick() |
|
public |
setSubtitleTrackInternal(newId: *) |
Private Methods | ||
private |
|
Inherited Summary
From class EventHandler | ||
public |
|
|
public |
hls: * |
|
public |
|
|
public |
destroy() |
|
public |
isEventHandler(): * |
|
public |
onEvent(event: *, data: *) arguments: event (string), data (any) |
|
public |
onEventGeneric(event: *, data: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
Public Members
public media: * source
public queuedDefaultTrack: * 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 timer: * source
public trackChangeListener: * source
public trackId: * source
public tracks: *[] source
public useTextTrackPolling: * source
Public Methods
public onManifestLoaded(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onManifestLoading() source
public onMediaAttached(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onMediaDetaching() source
public onSubtitleTrackLoaded(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onTick() source
public setSubtitleTrackInternal(newId: *) source
Params:
Name | Type | Attribute | Description |
newId | * |