mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
feat(Player): added shortcut for next episode
This commit is contained in:
parent
c3f67454ff
commit
041748ef71
2 changed files with 14 additions and 0 deletions
|
|
@ -103,6 +103,11 @@
|
||||||
"name": "statisticsMenu",
|
"name": "statisticsMenu",
|
||||||
"label": "SETTINGS_SHORTCUT_MENU_STATISTICS",
|
"label": "SETTINGS_SHORTCUT_MENU_STATISTICS",
|
||||||
"combos": [["D"]]
|
"combos": [["D"]]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "playNext",
|
||||||
|
"label": "SETTINGS_SHORTCUT_MENU_PLAY_NEXT",
|
||||||
|
"combos": [["Shift", "N"]]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -725,6 +725,15 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
}
|
}
|
||||||
}, [player.selected, streamingServer.statistics, toggleStatisticsMenu]);
|
}, [player.selected, streamingServer.statistics, toggleStatisticsMenu]);
|
||||||
|
|
||||||
|
onShortcut('playNext', () => {
|
||||||
|
closeMenus();
|
||||||
|
if (window.playerNextVideo !== null) {
|
||||||
|
nextVideo();
|
||||||
|
const deepLinks = window.playerNextVideo.deepLinks;
|
||||||
|
handleNextVideoNavigation(deepLinks, false, false);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
onShortcut('exit', () => {
|
onShortcut('exit', () => {
|
||||||
closeMenus();
|
closeMenus();
|
||||||
!settings.escExitFullscreen && window.history.back();
|
!settings.escExitFullscreen && window.history.back();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue