UNPKG

hls.js

Version:

JavaScript HLS client using MediaSourceExtension

21 lines (17 loc) 582 B
import type EwmaBandWidthEstimator from '../utils/ewma-bandwidth-estimator'; export interface ComponentAPI { destroy(): void; } export interface AbrComponentAPI extends ComponentAPI { firstAutoLevel: number; forcedAutoLevel: number; nextAutoLevel: number; readonly bwEstimator?: EwmaBandWidthEstimator; resetEstimator(abrEwmaDefaultEstimate: number); } export interface NetworkComponentAPI extends ComponentAPI { startLoad(startPosition: number, skipSeekToStartPosition?: boolean): void; stopLoad(): void; pauseBuffering?(): void; resumeBuffering?(): void; }