mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add logging
This commit is contained in:
parent
4201f1065d
commit
e9974f5344
1 changed files with 9 additions and 0 deletions
|
@ -982,18 +982,27 @@
|
||||||
var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
|
var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
|
console.log('prefetching hls playlist: ' + hlsPlaylistUrl);
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
|
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: hlsPlaylistUrl
|
url: hlsPlaylistUrl
|
||||||
|
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
||||||
|
console.log('completed prefetching hls playlist: ' + hlsPlaylistUrl);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
streamInfo.url = hlsPlaylistUrl;
|
streamInfo.url = hlsPlaylistUrl;
|
||||||
|
|
||||||
setTimeout(onReadyToPlay, 0);
|
setTimeout(onReadyToPlay, 0);
|
||||||
|
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
||||||
|
console.log('error prefetching hls playlist: ' + hlsPlaylistUrl);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue