import {TimelineController} from 'hls.js/src/controller/timeline-controller.ts'
TimelineController
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
Cues: * |
|
public |
captionsProperties: {"textTrack1": *, "textTrack2": *, "textTrack3": *, "textTrack4": *} |
|
public |
captionsTracks: Record |
|
public |
|
|
public |
|
|
public |
config: * |
|
public |
|
|
public |
hls: * |
|
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) |
|
private |
|
|
private |
|
Public Constructors
public constructor() source
Public Members
public Cues: * source
public captionsProperties: {"textTrack1": *, "textTrack2": *, "textTrack3": *, "textTrack4": *} source
public captionsTracks: Record source
public cea608Parser1: * source
public cea608Parser2: * source
public config: * source
public hls: * 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 |