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

FPSController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

hls: *

public
public
public
public
public

media: *

public
public

timer: *

Method Summary

Public Methods
public

checkFPS(video: HTMLVideoElement, decodedFrames: number, droppedFrames: number)

public
public
public

onMediaAttaching(event: undefined, data: MediaAttachingData)

public
public
public

Public Constructors

public constructor() source

Public Members

public hls: * source

public isVideoPlaybackQualityAvailable: boolean source

public lastDecodedFrames: number source

public lastDroppedFrames: number source

public lastTime: * source

public media: * source

public streamController: * source

public timer: * source

Public Methods

public checkFPS(video: HTMLVideoElement, decodedFrames: number, droppedFrames: number) source

Params:

NameTypeAttributeDescription
video HTMLVideoElement
decodedFrames number
droppedFrames number

public checkFPSInterval() source

public destroy() source

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

Params:

NameTypeAttributeDescription
event undefined
data MediaAttachingData

public registerListeners() source

public setStreamController(streamController: StreamController) source

Params:

NameTypeAttributeDescription
streamController StreamController

public unregisterListeners() source