import {SubtitleStreamController} from 'hls.js/src/controller/subtitle-stream-controller.ts'
SubtitleStreamController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
config: * |
|
public |
|
|
public |
fragCurrent: * |
|
public |
fragPrevious: * |
|
public |
|
|
public |
|
|
public |
media: * |
|
public |
mediaBuffer: * |
|
public get |
|
|
public |
state: * |
|
public |
tracksBuffered: *[] |
Method Summary
Public Methods | ||
public |
doTick() |
|
public |
loadFragment(frag: Fragment, levelDetails: LevelDetails, targetBufferTime: number) |
|
public |
|
|
public |
|
|
public |
onMediaAttached(event: undefined, undefined: MediaAttachedData) |
|
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 |
|
|
public |
stopLoad() |
Private Methods | ||
private |
_handleFragmentLoadComplete(fragLoadedData: FragLoadedData) |
|
private |
|
|
private |
|
Public Constructors
public constructor() source
Public Members
public config: * source
public fragCurrent: * source
public fragPrevious: * source
public levelLastLoaded: * source
public media: * source
public mediaBuffer: * source
public get mediaBufferTimeRanges: * source
public state: * source
public tracksBuffered: *[] 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 onMediaAttached(event: undefined, undefined: MediaAttachedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | MediaAttachedData |
public onMediaDetaching() 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
public stopLoad() source
Private Methods
private _handleFragmentLoadComplete(fragLoadedData: FragLoadedData) source
Params:
Name | Type | Attribute | Description |
fragLoadedData | FragLoadedData |