import {SubtitleStreamController} from 'hls.js/src/controller/subtitle-stream-controller.ts'
SubtitleStreamController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
fragCurrent: * |
|
public |
fragPrevious: * |
|
public |
|
|
public |
|
|
public |
mediaBuffer: * |
|
public get |
|
|
public |
state: * |
|
public |
|
Method Summary
Public Methods | ||
public |
doTick() |
|
public |
loadFragment(frag: Fragment, levelDetails: LevelDetails, targetBufferTime: number) |
|
public |
|
|
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 fragCurrent: * source
public fragPrevious: * source
public levelLastLoaded: * source
public mediaBuffer: * source
public get mediaBufferTimeRanges: * source
public state: * source
Public Methods
public doTick() source
public loadFragment(frag: Fragment, levelDetails: LevelDetails, targetBufferTime: number) source
Params:
Name | Type | Attribute | Description |
frag | Fragment | ||
levelDetails | LevelDetails | ||
targetBufferTime | number |
public onError(event: undefined, data: ErrorData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ErrorData |
public onHandlerDestroyed() source
public onSubtitleFragProcessed(event: undefined, data: SubtitleFragProcessed) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | SubtitleFragProcessed |
public onSubtitleTrackLoaded(event: undefined, data: TrackLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | TrackLoadedData |
public onSubtitleTrackSwitch(event: undefined, data: TrackSwitchedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | TrackSwitchedData |
public onSubtitleTracksUpdated(event: undefined, undefined: SubtitleTracksUpdatedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | SubtitleTracksUpdatedData |
public startLoad() source
Private Methods
private _handleFragmentLoadComplete(fragLoadedData: FragLoadedData) source
Params:
Name | Type | Attribute | Description |
fragLoadedData | FragLoadedData |