From 809e8e158b31b498557646ebd306faa8e8b8cbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo?= Date: Sun, 31 Jan 2021 14:11:03 -0300 Subject: [PATCH] feat: create defaultOptions getter --- src/hls.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hls.js b/src/hls.js index 94c0cf4..94cb935 100644 --- a/src/hls.js +++ b/src/hls.js @@ -109,6 +109,10 @@ export default class HlsjsPlayback extends HTML5Video { return this._hls && this._hls.bandwidthEstimate } + get defaultOptions() { + return { loadSourceBeforePlay: true } + } + static get HLSJS() { return HLSJS }