mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Merge pull request #307 from DrPandemic/redirect-video-error
Redirect when loading video player fails
This commit is contained in:
commit
2a527e5e20
@ -1227,16 +1227,22 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
||||
Emby.Page.setTransparency("full");
|
||||
});
|
||||
view.addEventListener("viewshow", function (e) {
|
||||
events.on(playbackManager, "playerchange", onPlayerChange);
|
||||
bindToPlayer(playbackManager.getCurrentPlayer());
|
||||
dom.addEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
||||
passive: true
|
||||
});
|
||||
showOsd();
|
||||
inputManager.on(window, onInputCommand);
|
||||
dom.addEventListener(window, "keydown", onWindowKeyDown, {
|
||||
passive: true
|
||||
});
|
||||
try {
|
||||
events.on(playbackManager, "playerchange", onPlayerChange);
|
||||
bindToPlayer(playbackManager.getCurrentPlayer());
|
||||
dom.addEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
||||
passive: true
|
||||
});
|
||||
showOsd();
|
||||
inputManager.on(window, onInputCommand);
|
||||
dom.addEventListener(window, "keydown", onWindowKeyDown, {
|
||||
passive: true
|
||||
});
|
||||
} catch(e) {
|
||||
require(['appRouter'], function(appRouter) {
|
||||
appRouter.showDirect('/');
|
||||
});
|
||||
}
|
||||
});
|
||||
view.addEventListener("viewbeforehide", function () {
|
||||
if (statsOverlay) {
|
||||
|
Loading…
Reference in New Issue
Block a user