add logging

This commit is contained in:
Luke Pulverenti 2016-11-28 00:37:00 -05:00
parent 4201f1065d
commit e9974f5344

View File

@ -982,18 +982,27 @@
var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
Dashboard.showLoadingMsg();
console.log('prefetching hls playlist: ' + hlsPlaylistUrl);
ApiClient.ajax({
type: 'GET',
url: hlsPlaylistUrl
}).then(function () {
console.log('completed prefetching hls playlist: ' + hlsPlaylistUrl);
Dashboard.hideLoadingMsg();
streamInfo.url = hlsPlaylistUrl;
setTimeout(onReadyToPlay, 0);
}, function () {
console.log('error prefetching hls playlist: ' + hlsPlaylistUrl);
Dashboard.hideLoadingMsg();
});