Skip to content
This repository was archived by the owner on Jan 15, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class App {
this._videoPlayer.updateOfflineProgress(0, true);
});
}, err => {
console.log(err);
console.error("Video player init err:", err);
});
}

Expand Down Expand Up @@ -392,7 +392,7 @@ class App {
Toast.create('Caching video for offline.', {tag: 'offline'});
return this._offlineCache.add(name, assetPath, pagePath, drmInfo)
.catch(_ => {
console.error(_);
console.error("OfflineCache add:", _);
Toast.create('Cancelled download.', {tag: 'offline'});
this._offlineDownloadState = App.VIDEO_DOWNLOAD_STATES.IDLE;
});
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/background-fetch-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BackgroundFetchHelper {
return;
}

console.log(assets);
console.log("Assets:", assets);

return caches.open(id).then(cache => {
const fetches = evt.fetches;
Expand Down
4 changes: 2 additions & 2 deletions src/client/scripts/helpers/offline-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class OfflineCache {

add (name, assetPath, pagePath, drmInfo) {
if (!Constants.SUPPORTS_CACHING) {
return;
return Promise.reject(new Error("does not support caching"));
}

const assets = [];
Expand Down Expand Up @@ -346,7 +346,7 @@ class OfflineCache {

return this._downloadForeground('prefetch', fetches)
.catch(e => {
console.error(e);
console.error("DownloadForeground prefetch", e);
});
})
.catch(prefetchErr => {
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/helpers/service-worker-installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ServiceWorkerInstaller {
};
};
}, function (err) {
console.warn(err);
console.warn("Service worker registration unsuccessful:", err);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/scripts/ranged-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class RangedResponse {
start, end, offset);
});
} catch (e) {
console.log(e);
console.error("RangedResponses cachedResponses:", e);
return new Response(e.message, {status: 400});
};
}
Expand Down
14 changes: 7 additions & 7 deletions src/client/scripts/video-player/video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class VideoPlayer {

// Lock the player to the offline stream.
const tracks = this._player.getTracks().filter(t => {
console.log(t);
console.log("Track:", t);
return t.height === Constants.PREFETCH_VIDEO_HEIGHT;
});

Expand Down Expand Up @@ -525,15 +525,15 @@ class VideoPlayer {
}

_startChromecastWatch () {
console.log('_startChromecastWatch');
console.log('StartChromecastWatch');
if (!VideoPlayer.SUPPORTS_REMOTE_PLAYBACK) {
this._videoControls.hideChromecastButton();
return;
}

this._castVideo.src = this._castSrc;
this._castVideo.remote.watchAvailability(available => {
console.log('_startChromecastWatch:' + available);
console.log('StartChromecastWatch:' + available);
if (available) {
this._videoControls.showChromecastButton();
return;
Expand Down Expand Up @@ -619,7 +619,7 @@ class VideoPlayer {
this._video.play().then(_ => {
this._updateVideoControlsWithPlayerState();
}, err => {
console.warn(err);
console.warn("OnPlay:", err);
});
}

Expand Down Expand Up @@ -749,17 +749,17 @@ class VideoPlayer {
}

_onRemoteConnect () {
console.log('_onRemoteConnect');
console.log('OnRemoteConnect');
this._videoControls.castConnected = true;
}

_onRemoteConnecting () {
console.log('_onRemoteConnecting');
console.log('OnRemoteConnecting');
this._videoControls.castConnecting = true;
}

_onRemoteDisconnect () {
console.log('_onRemoteDisconnect');
console.log('OnRemoteDisconnect');
this._videoControls.castConnected = false;
}

Expand Down