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

LatencyController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

config: *

public
public get
public get
public get
public

hls: *

public get
public
public get
public get
public

media: *

public
public get
public
Private Members
private

Method Summary

Public Methods
public
public
public
public

onError(event: undefined, data: ErrorData)

public

onLevelUpdated(event: undefined, undefined: LevelUpdatedData)

public
public

onMediaAttached(event: undefined, data: MediaAttachingData)

public
public
public
public

Public Constructors

public constructor() source

Public Members

public config: * source

public currentTime: number source

public get drift: number source

public get edgeStalled: number source

public get forwardBufferLength: number source

public hls: * source

public get latency: number source

public levelDetails: * source

public get liveSyncPosition: * source

public get maxLatency: number source

public media: * source

public stallCount: number source

public get targetLatency: * source

public timeupdateHandler: * source

Private Members

private _latency: * source

Public Methods

public computeLatency(): * source

Return:

*

public destroy() source

public estimateLiveEdge(): * source

Return:

*

public onError(event: undefined, data: ErrorData) source

Params:

NameTypeAttributeDescription
event undefined
data ErrorData

public onLevelUpdated(event: undefined, undefined: LevelUpdatedData) source

Params:

NameTypeAttributeDescription
event undefined
undefined LevelUpdatedData

public onManifestLoading() source

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

Params:

NameTypeAttributeDescription
event undefined
data MediaAttachingData

public onMediaDetaching() source

public registerListeners() source

public timeupdate() source

public unregisterListeners() source