Home Reference Source
import {TimelineController} from 'hls.js/src/controller/timeline-controller.ts'
public class | source

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
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
public
public
public

createTextTrack(kind: TextTrackKind, label: string, lang: string): *

public
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
private

_parseIMSC1(frag: Fragment, payload: ArrayBuffer)

private

_parseVTTs(frag: Fragment, payload: ArrayBuffer, vttCCs: undefined)

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 enabled: boolean source

public hls: * source

public initPTS: Array source

public lastSn: number source

public media: * source

public nonNativeCaptionsTracks: Record source

public prevCC: number source

public textTracks: Array source

public timescale: Array source

public tracks: Array source

public unparsedVttFrags: Array source

public vttCCs: VTTCCs source

Public Methods

public addCues(trackName: string, startTime: number, endTime: number, screen: CaptionScreen, cueRanges: Array) source

Params:

NameTypeAttributeDescription
trackName string
startTime number
endTime number
screen CaptionScreen
cueRanges Array

public createCaptionsTrack(trackName: string) source

Params:

NameTypeAttributeDescription
trackName string

public createNativeTrack(trackName: string) source

Params:

NameTypeAttributeDescription
trackName string

public createNonNativeTrack(trackName: string) source

Params:

NameTypeAttributeDescription
trackName string

public createTextTrack(kind: TextTrackKind, label: string, lang: string): * source

Params:

NameTypeAttributeDescription
kind TextTrackKind
label string
lang string

Return:

*

public destroy() source

public extractCea608Data(byteArray: Uint8Array): * source

Params:

NameTypeAttributeDescription
byteArray Uint8Array

Return:

*

public getExistingTrack(trackName: string): * source

Params:

NameTypeAttributeDescription
trackName string

Return:

*

public onBufferFlushing(event: undefined, undefined: BufferFlushingData) source

Params:

NameTypeAttributeDescription
event undefined
undefined BufferFlushingData

public onFragDecrypted(event: undefined, data: FragDecryptedData) source

Params:

NameTypeAttributeDescription
event undefined
data FragDecryptedData

public onFragLoaded(event: undefined, data: FragLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data FragLoadedData

public onFragLoading(event: undefined, data: FragLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data FragLoadingData

public onFragParsingUserdata(event: undefined, data: FragParsingUserdataData) source

Params:

NameTypeAttributeDescription
event undefined
data FragParsingUserdataData

public onInitPtsFound(event: undefined, undefined: InitPTSFoundData) source

Params:

NameTypeAttributeDescription
event undefined
undefined InitPTSFoundData

public onManifestLoaded(event: undefined, data: ManifestLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data ManifestLoadedData

public onManifestLoading() source

public onMediaAttaching(event: undefined, data: MediaAttachingData) source

Params:

NameTypeAttributeDescription
event undefined
data MediaAttachingData

public onMediaDetaching() source

public onSubtitleTracksCleared() source

public onSubtitleTracksUpdated(event: undefined, data: SubtitleTracksUpdatedData) source

Params:

NameTypeAttributeDescription
event undefined
data SubtitleTracksUpdatedData

Private Methods

private _appendCues(cues: undefined, fragLevel: number) source

Params:

NameTypeAttributeDescription
cues undefined
fragLevel number

private _cleanTracks() source

private _fallbackToIMSC1(frag: Fragment, payload: ArrayBuffer) source

Params:

NameTypeAttributeDescription
frag Fragment
payload ArrayBuffer

private _parseIMSC1(frag: Fragment, payload: ArrayBuffer) source

Params:

NameTypeAttributeDescription
frag Fragment
payload ArrayBuffer

private _parseVTTs(frag: Fragment, payload: ArrayBuffer, vttCCs: undefined) source

Params:

NameTypeAttributeDescription
frag Fragment
payload ArrayBuffer
vttCCs undefined