From adb6e1cbb7f783f4b06c5066dc9047dfc02c6170 Mon Sep 17 00:00:00 2001 From: Alexey Berezin Date: Sun, 3 Feb 2019 15:48:15 +0300 Subject: [PATCH 1/2] Add bandwidth estimate type --- types/hls.js/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index 721f4a3dce..01f4e5e8a2 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -1682,6 +1682,11 @@ declare class Hls { * If set to false, the mode will be set to hidden. */ subtitleDisplay: boolean; + /** + * (default: NaN) + * Return current download bandwidth in bits/s if available + */ + bandwidthEstimate: number; /** * calling this method will: * bind videoElement and hls instances From acbe8ca3aaaa0705ca2fed812050ac9f3ce996cd Mon Sep 17 00:00:00 2001 From: Alexey Berezin Date: Sun, 3 Feb 2019 15:53:22 +0300 Subject: [PATCH 2/2] Add definition mention --- types/hls.js/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index 01f4e5e8a2..7142f619a3 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for hls.js 0.10 // Project: https://github.com/video-dev/hls.js -// Definitions by: John G. Gainfort, Jr. +// Definitions by: John G. Gainfort, Jr. +// Alexey I. Berezin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2