import {TimelineController} from 'hls.js/src/controller/timeline-controller.ts'
TimelineController
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
Cues: CuesInterface |
|
public |
|
|
public |
captionsTracks: Record |
|
public |
|
|
public |
|
|
public |
config: HlsConfig |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
media: * |
|
public |
nonNativeCaptionsTracks: Record |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
vttCCs: VTTCCs |
Method Summary
Public Methods | ||
public |
addCues(trackName: string, startTime: number, endTime: number, screen: CaptionScreen, cueRanges: Array) |
|
public |
createCaptionsTrack(trackName: string) |
|
public |
createNativeTrack(trackName: string) |
|
public |
createNonNativeTrack(trackName: string) |
|
public |
createTextTrack(kind: TextTrackKind, label: string, lang: string): * |
|
public |
destroy() |
|
public |
extractCea608Data(byteArray: Uint8Array): * |
|
public |
getExistingTrack(trackName: string): * |
|
public |
onBufferFlushing(event: undefined, undefined: BufferFlushingData) |
|
public |
onFragDecrypted(event: undefined, data: FragDecryptedData) |
|
public |
onFragLoaded(event: undefined, data: FragLoadedData) |
|
public |
onFragLoading(event: undefined, data: FragLoadingData) |
|
public |
onFragParsingUserdata(event: undefined, data: FragParsingUserdataData) |
|
public |
onInitPtsFound(event: undefined, undefined: InitPTSFoundData) |
|
public |
onManifestLoaded(event: undefined, data: ManifestLoadedData) |
|
public |
|
|
public |
onMediaAttaching(event: undefined, data: MediaAttachingData) |
|
public |
|
|
public |
|
|
public |
onSubtitleTracksUpdated(event: undefined, data: SubtitleTracksUpdatedData) |
Private Methods | ||
private |
_appendCues(cues: undefined, fragLevel: number) |
|
private |
|
|
private |
_fallbackToIMSC1(frag: Fragment, payload: ArrayBuffer) |
|
private |
_parseIMSC1(frag: Fragment, payload: ArrayBuffer) |
|
private |
_parseVTTs(frag: Fragment, payload: ArrayBuffer, vttCCs: undefined) |
Public Constructors
public constructor() source
Public Members
public Cues: CuesInterface source
public captionsProperties: * source
public captionsTracks: Record source
public cea608Parser1: Cea608Parser source
public cea608Parser2: Cea608Parser source
public config: HlsConfig source
public media: * source
public nonNativeCaptionsTracks: Record source
public vttCCs: VTTCCs source
Public Methods
public addCues(trackName: string, startTime: number, endTime: number, screen: CaptionScreen, cueRanges: Array) source
Params:
Name | Type | Attribute | Description |
trackName | string | ||
startTime | number | ||
endTime | number | ||
screen | CaptionScreen | ||
cueRanges | Array |
public createCaptionsTrack(trackName: string) source
Params:
Name | Type | Attribute | Description |
trackName | string |
public createNativeTrack(trackName: string) source
Params:
Name | Type | Attribute | Description |
trackName | string |
public createNonNativeTrack(trackName: string) source
Params:
Name | Type | Attribute | Description |
trackName | string |
public destroy() source
public extractCea608Data(byteArray: Uint8Array): * source
Params:
Name | Type | Attribute | Description |
byteArray | Uint8Array |
Return:
* |
public getExistingTrack(trackName: string): * source
Params:
Name | Type | Attribute | Description |
trackName | string |
Return:
* |
public onBufferFlushing(event: undefined, undefined: BufferFlushingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | BufferFlushingData |
public onFragDecrypted(event: undefined, data: FragDecryptedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragDecryptedData |
public onFragLoaded(event: undefined, data: FragLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragLoadedData |
public onFragLoading(event: undefined, data: FragLoadingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragLoadingData |
public onFragParsingUserdata(event: undefined, data: FragParsingUserdataData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FragParsingUserdataData |
public onInitPtsFound(event: undefined, undefined: InitPTSFoundData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
undefined | InitPTSFoundData |
public onManifestLoaded(event: undefined, data: ManifestLoadedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ManifestLoadedData |
public onManifestLoading() source
public onMediaAttaching(event: undefined, data: MediaAttachingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | MediaAttachingData |
public onMediaDetaching() source
public onSubtitleTracksCleared() source
public onSubtitleTracksUpdated(event: undefined, data: SubtitleTracksUpdatedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | SubtitleTracksUpdatedData |
Private Methods
private _cleanTracks() source
private _fallbackToIMSC1(frag: Fragment, payload: ArrayBuffer) source
Params:
Name | Type | Attribute | Description |
frag | Fragment | ||
payload | ArrayBuffer |
private _parseIMSC1(frag: Fragment, payload: ArrayBuffer) source
Params:
Name | Type | Attribute | Description |
frag | Fragment | ||
payload | ArrayBuffer |
private _parseVTTs(frag: Fragment, payload: ArrayBuffer, vttCCs: undefined) source
Params:
Name | Type | Attribute | Description |
frag | Fragment | ||
payload | ArrayBuffer | ||
vttCCs | undefined |