From: Vincent Date: Mon, 23 Nov 2020 07:23:22 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2a1fcae9daf45d57c36e9b868f088da017c9df23;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 07b3a21..6d14800 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,8 @@ - - - + + @@ -1298,12 +1299,12 @@ - + - + @@ -1314,11 +1315,11 @@ - + - + diff --git a/scripts/lib/mediarasp.php b/scripts/lib/mediarasp.php index b816261..531f69c 100644 --- a/scripts/lib/mediarasp.php +++ b/scripts/lib/mediarasp.php @@ -57,7 +57,7 @@ function remoteCmd($cmd, $device) } if ((($p === 'netflix' || $p === 'tv') && config('TVPLAYER') === 'shield') || config('VIDEOPLAYER') === 'shield') { - return shieldRemoteCommand($cmd,$device); + return shieldRemoteCommand($cmd, $device); } else if ($device == 'salon') { switch (getCurrentHarmonyActivity()) { case 'media': @@ -253,8 +253,7 @@ function remoteCmdSalonMusique($cmd) function mediaRaspPlayMovie($movie, $device = null) { - global $squeezeboxPlayers; - + stopPlayersIn($device); setPlaying('mediarasp:' . $movie, $device); mediaRaspCommons($device); diff --git a/scripts/lib/remoteinfos.php b/scripts/lib/remoteinfos.php index 85ca75e..c20f619 100644 --- a/scripts/lib/remoteinfos.php +++ b/scripts/lib/remoteinfos.php @@ -4,6 +4,16 @@ function remoteInfos() $playing = getPlaying(); $e = explode(':', $playing, 2); $p = $e[0]; + + if (config('TVPLAYER') === 'shield') { + $visualApps = ['arte', 'francetv', 'mycanal', 'youtube', 'dailymotion', 'vimeo', 'kodi', 'vlc']; + if (in_array(shieldGetCurrentApp(), $visualApps)) { + if ($p === 'squeezebox') { + setPlaying('shield'); + } + } + } + if ($p == 'squeezebox') { $res = squeezeboxRemoteInfos(); } else {