Skip to content

Commit

Permalink
fix demo: make also metrics globals refs on window
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Jan 10, 2018
1 parent 3223527 commit bcd6aa5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function loadStream(url) {
}

$('#HlsStatus').text('loading ' + url);
events = {

window.events = events = {
url : url,
t0 : performance.now(),
load : [],
Expand All @@ -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,
Expand Down

0 comments on commit bcd6aa5

Please sign in to comment.