From bcd6aa5ad0f1fc0835f4f4aad41140f2feb14aeb Mon Sep 17 00:00:00 2001 From: tchakabam Date: Wed, 10 Jan 2018 12:02:19 +0100 Subject: [PATCH] fix demo: make also metrics globals refs on window --- demo/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/demo/index.js b/demo/index.js index 48d7ad93e46..bbb0820a6d1 100644 --- a/demo/index.js +++ b/demo/index.js @@ -96,7 +96,8 @@ function loadStream(url) { } $('#HlsStatus').text('loading ' + url); - events = { + + window.events = events = { url : url, t0 : performance.now(), load : [], @@ -105,11 +106,15 @@ function loadStream(url) { level : [], bitrate: [] }; - recoverDecodingErrorDate = recoverSwapAudioCodecDate = null; - fmp4Data = { + + window.recoverDecodingErrorDate = + window.recoverSwapAudioCodecDate = recoverDecodingErrorDate = recoverSwapAudioCodecDate = null; + + window.fmp4Data = fmp4Data = { 'audio': [], 'video': [] }; + window.hls = hls = new Hls({ debug : true, enableWorker : enableWorker,