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

TimelineController

Extends:

src/event-handler.js~EventHandler → TimelineController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Cues: *

public

captionsProperties: {"textTrack1": *, "textTrack2": *}

public
public
public

config: *

public
public
public

hls: *

public
public
public

media: *

public
public
public
public
public

vttCCs: *

Method Summary

Public Methods
public

addCues(trackName: string, startTime: number, endTime: number, screen: CaptionScreen)

public
public

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

public
public
public

getExistingTrack(trackName: string): *

public
public
public
public
public
public
public
public
Private Methods
private
private

_parseVTTs(frag: Fragment, payload: undefined)

Public Constructors

public constructor() source

Public Members

public Cues: * source

public captionsProperties: {"textTrack1": *, "textTrack2": *} source

public captionsTracks: {} source

public cea608Parser: * source

public config: * source

public cueRanges: Array source

public enabled: boolean source

public hls: * source

public initPTS: Array source

public lastSn: number source

public media: * source

public prevCC: number source

public textTracks: Array source

public tracks: Array source

public unparsedVttFrags: Array source

public vttCCs: * source

Public Methods

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

Params:

NameTypeAttributeDescription
trackName string
startTime number
endTime number
screen CaptionScreen

public createCaptionsTrack(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): Array source

Params:

NameTypeAttributeDescription
byteArray Uint8Array

Return:

Array

public getExistingTrack(trackName: string): * source

Params:

NameTypeAttributeDescription
trackName string

Return:

*

public onFragDecrypted(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onFragLoaded(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onFragParsingUserdata(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onInitPtsFound(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onManifestLoaded(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onManifestLoading() source

public onMediaAttaching(data: undefined) source

Params:

NameTypeAttributeDescription
data undefined

public onMediaDetaching() source

Private Methods

private _cleanTracks() source

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

Params:

NameTypeAttributeDescription
frag Fragment
payload undefined