Support features for JellyfinMediaPlayer.
This commit is contained in:
@@ -76,7 +76,13 @@ import Headroom from 'headroom.js';
|
||||
}
|
||||
|
||||
function onBackClick() {
|
||||
appRouter.back();
|
||||
// If playing on a player that can't be destroyed with navigation, stop it manually.
|
||||
const player = playbackManager.getCurrentPlayer();
|
||||
if (player && player.mustDestroy && skinHeader.classList.contains('osdHeader')) {
|
||||
playbackManager.stop();
|
||||
} else {
|
||||
appRouter.back();
|
||||
}
|
||||
}
|
||||
|
||||
function retranslateUi() {
|
||||
|
||||
@@ -54,8 +54,8 @@ import dom from '../scripts/dom';
|
||||
|
||||
let lastPointerMoveData;
|
||||
function onPointerMove(e) {
|
||||
const eventX = e.screenX;
|
||||
const eventY = e.screenY;
|
||||
const eventX = e.screenX || e.clientX;
|
||||
const eventY = e.screenY || e.clientY;
|
||||
|
||||
// if coord don't exist how could it move
|
||||
if (typeof eventX === 'undefined' && typeof eventY === 'undefined') {
|
||||
|
||||
@@ -79,6 +79,15 @@ export function getMultiServer() {
|
||||
});
|
||||
}
|
||||
|
||||
export function getIgnorePlayPermission() {
|
||||
return getConfig().then(config => {
|
||||
return !!config.ignorePlayPermission;
|
||||
}).catch(error => {
|
||||
console.log('cannot get web config:', error);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
export function getServers() {
|
||||
return getConfig().then(config => {
|
||||
return config.servers || [];
|
||||
|
||||
Reference in New Issue
Block a user