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

TimelineController

Extends:

EventHandler → TimelineController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Cues: *

public
public
public

config: *

public

cueRanges: *[]

public
public

hls: *

public

initPTS: *

public

lastSn: *

public

media: *

public

prevCC: *

public

textTracks: *[]

public

tracks: *[]

public
public

vttCCs: {"ccOffset": *, "presentationOffset": *}

Method Summary

Public Methods
public

addCues(channel: *, startTime: *, endTime: *, screen: *)

public
public

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

public
public

extractCea608Data(byteArray: *): *

public

getExistingTrack(channelNumber: *): *

public

onFragDecrypted(data: *)

public

onFragLoaded(data: *)

public
public

onInitPtsFound(data: *)

public
public

onManifestLoaded(data: *)

public
public

onMediaAttaching(data: *)

public
Private Methods
private
private

_parseVTTs(frag: *, payload: *)

Inherited Summary

From class EventHandler
public
public

hls: *

public
public
public
public

onEvent(event: *, data: *)

arguments: event (string), data (any)

public

onEventGeneric(event: *, data: *)

public
public
public
public

Public Constructors

public constructor() source

Override:

EventHandler#constructor

Public Members

public Cues: * source

public [trackVar]: * source

public cea608Parser: * source

public config: * source

public cueRanges: *[] source

public enabled: boolean source

public hls: * source

Override:

EventHandler#hls

public initPTS: * source

public lastSn: * source

public media: * source

public prevCC: * source

public textTracks: *[] source

public tracks: *[] source

public unparsedVttFrags: *[] source

public vttCCs: {"ccOffset": *, "presentationOffset": *} source

Public Methods

public addCues(channel: *, startTime: *, endTime: *, screen: *) source

Params:

NameTypeAttributeDescription
channel *
startTime *
endTime *
screen *

public createCaptionsTrack(track: *) source

Params:

NameTypeAttributeDescription
track *

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

Params:

NameTypeAttributeDescription
kind *
label *
lang *

Return:

*

public destroy() source

Override:

EventHandler#destroy

public extractCea608Data(byteArray: *): * source

Params:

NameTypeAttributeDescription
byteArray *

Return:

*

public getExistingTrack(channelNumber: *): * source

Params:

NameTypeAttributeDescription
channelNumber *

Return:

*

public onFragDecrypted(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragParsingUserdata(data: *) source

Params:

NameTypeAttributeDescription
data *

public onInitPtsFound(data: *) source

Params:

NameTypeAttributeDescription
data *

public onLevelSwitching() source

public onManifestLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onManifestLoading() source

public onMediaAttaching(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

Private Methods

private _cleanTracks() source

private _parseVTTs(frag: *, payload: *) source

Params:

NameTypeAttributeDescription
frag *
payload *