diff --git a/src/components/commandHandler.js b/src/components/commandHandler.js index 4413937c..5a38e369 100644 --- a/src/components/commandHandler.js +++ b/src/components/commandHandler.js @@ -2,7 +2,6 @@ import { translateItems, shuffle, instantMix, - isPlaying, setAudioStreamIndex, setSubtitleStreamIndex, seek @@ -61,7 +60,7 @@ export class commandHandler { } displayContentHandler(data) { - if (!isPlaying()) { + if (!this.playbackManager.isPlaying()) { jellyfinActions.displayItem($scope, data.serverAddress, data.accessToken, data.userId, data.options.ItemId); } } @@ -107,7 +106,7 @@ export class commandHandler { } IdentifyHandler(data) { - if (!isPlaying()) { + if (!this.playbackManager.isPlaying()) { jellyfinActions.displayUserInfo($scope, data.serverAddress, data.accessToken, data.userId); } else { // When a client connects send back the initial device state (volume etc) via a playbackstop message diff --git a/src/components/playbackManager.js b/src/components/playbackManager.js index 2eeb8a73..7ffa5da2 100644 --- a/src/components/playbackManager.js +++ b/src/components/playbackManager.js @@ -4,7 +4,8 @@ import { setAppStatus, broadcastConnectionErrorMessage, tagItems, - getReportingParams + getReportingParams, + createStreamInfo } from "../helpers"; import { @@ -15,7 +16,6 @@ import { validatePlaybackInfoResult, showPlaybackInfoErrorMessage, supportsDirectPlay, - createStreamInfo, createMediaInformation } from "./maincontroller";