Fix lint
This commit is contained in:
parent
a7df7ad720
commit
21152040ec
3 changed files with 12 additions and 13 deletions
|
@ -8,7 +8,7 @@ import * as userSettings from 'userSettings';
|
||||||
import globalize from 'globalize';
|
import globalize from 'globalize';
|
||||||
import connectionManager from 'connectionManager';
|
import connectionManager from 'connectionManager';
|
||||||
import loading from 'loading';
|
import loading from 'loading';
|
||||||
import apphost from 'apphost';
|
import appHost from 'apphost';
|
||||||
import screenfull from 'screenfull';
|
import screenfull from 'screenfull';
|
||||||
|
|
||||||
function enableLocalPlaylistManagement(player) {
|
function enableLocalPlaylistManagement(player) {
|
||||||
|
@ -322,7 +322,7 @@ function getAudioStreamUrl(item, transcodingProfile, directPlayContainers, maxBi
|
||||||
PlaySessionId: startingPlaySession,
|
PlaySessionId: startingPlaySession,
|
||||||
StartTimeTicks: startPosition || 0,
|
StartTimeTicks: startPosition || 0,
|
||||||
EnableRedirection: true,
|
EnableRedirection: true,
|
||||||
EnableRemoteMedia: apphost.supports('remoteaudio')
|
EnableRemoteMedia: appHost.supports('remoteaudio')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -606,7 +606,7 @@ function supportsDirectPlay(apiClient, item, mediaSource) {
|
||||||
const isFolderRip = mediaSource.VideoType === 'BluRay' || mediaSource.VideoType === 'Dvd' || mediaSource.VideoType === 'HdDvd';
|
const isFolderRip = mediaSource.VideoType === 'BluRay' || mediaSource.VideoType === 'Dvd' || mediaSource.VideoType === 'HdDvd';
|
||||||
|
|
||||||
if (mediaSource.SupportsDirectPlay || isFolderRip) {
|
if (mediaSource.SupportsDirectPlay || isFolderRip) {
|
||||||
if (mediaSource.IsRemote && !apphost.supports('remotevideo')) {
|
if (mediaSource.IsRemote && !appHost.supports('remotevideo')) {
|
||||||
return Promise.resolve(false);
|
return Promise.resolve(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3156,7 +3156,7 @@ class PlaybackManager {
|
||||||
return streamInfo ? streamInfo.playbackStartTimeTicks : null;
|
return streamInfo ? streamInfo.playbackStartTimeTicks : null;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (apphost.supports('remotecontrol')) {
|
if (appHost.supports('remotecontrol')) {
|
||||||
import('serverNotifications').then(({ default: serverNotifications }) => {
|
import('serverNotifications').then(({ default: serverNotifications }) => {
|
||||||
events.on(serverNotifications, 'ServerShuttingDown', self.setDefaultPlayerActive.bind(self));
|
events.on(serverNotifications, 'ServerShuttingDown', self.setDefaultPlayerActive.bind(self));
|
||||||
events.on(serverNotifications, 'ServerRestarting', self.setDefaultPlayerActive.bind(self));
|
events.on(serverNotifications, 'ServerRestarting', self.setDefaultPlayerActive.bind(self));
|
||||||
|
@ -3520,7 +3520,7 @@ class PlaybackManager {
|
||||||
'PlayTrailers'
|
'PlayTrailers'
|
||||||
];
|
];
|
||||||
|
|
||||||
if (appHost.default.supports('fullscreenchange')) {
|
if (appHost.supports('fullscreenchange')) {
|
||||||
list.push('ToggleFullscreen');
|
list.push('ToggleFullscreen');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,10 @@ import 'emby-button';
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
function getDeviceHtml(device) {
|
function getDeviceHtml(device) {
|
||||||
let padderClass;
|
const padderClass = 'cardPadder-backdrop';
|
||||||
|
let cssClass = 'card scalableCard backdropCard backdropCard-scalable';
|
||||||
|
const cardBoxCssClass = 'cardBox visualCardBox';
|
||||||
let html = '';
|
let html = '';
|
||||||
let cssClass = 'card scalableCard';
|
|
||||||
let cardBoxCssClass = 'cardBox visualCardBox';
|
|
||||||
cssClass += ' backdropCard backdropCard-scalable';
|
|
||||||
padderClass = 'cardPadder-backdrop';
|
|
||||||
|
|
||||||
// TODO move card creation code to Card component
|
// TODO move card creation code to Card component
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,8 @@ export class BookPlayer {
|
||||||
|
|
||||||
onTouchStart(e) {
|
onTouchStart(e) {
|
||||||
// TODO: depending on the event this can be the document or the rendition itself
|
// TODO: depending on the event this can be the document or the rendition itself
|
||||||
let rendition = this._rendition || this;
|
const rendition = this._rendition || this;
|
||||||
let book = rendition.book;
|
const book = rendition.book;
|
||||||
|
|
||||||
// check that the event is from the book or the document
|
// check that the event is from the book or the document
|
||||||
if (!book || this._loaded === false) return;
|
if (!book || this._loaded === false) return;
|
||||||
|
@ -132,7 +132,8 @@ export class BookPlayer {
|
||||||
// epubjs stores pages off the screen or something for preloading
|
// epubjs stores pages off the screen or something for preloading
|
||||||
// get the modulus of the touch event to account for the increased width
|
// get the modulus of the touch event to account for the increased width
|
||||||
if (!e.touches || e.touches.length === 0) return;
|
if (!e.touches || e.touches.length === 0) return;
|
||||||
let touch = e.touches[0].clientX % dom.getWindowSize().innerWidth;
|
|
||||||
|
const touch = e.touches[0].clientX % dom.getWindowSize().innerWidth;
|
||||||
if (touch < dom.getWindowSize().innerWidth / 2) {
|
if (touch < dom.getWindowSize().innerWidth / 2) {
|
||||||
book.package.metadata.direction === 'rtl' ? rendition.next() : rendition.prev();
|
book.package.metadata.direction === 'rtl' ? rendition.next() : rendition.prev();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue