From: Vincent Date: Wed, 18 Nov 2020 10:14:03 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=857a2323481b24288e914a056d4f1ebaed22f269;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1ce4930..3ae32af 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,13 +3,9 @@ - - - + - - @@ -1310,12 +1296,12 @@ - + - + diff --git a/scripts/lib/lib.php b/scripts/lib/lib.php index 1232d51..e7fd0b8 100644 --- a/scripts/lib/lib.php +++ b/scripts/lib/lib.php @@ -442,9 +442,9 @@ function volume($volume, $increase = '') switch ($d) { case 'shield': if ($increase == '-') { - shieldKey('volume-down'); + return shieldKey('volume-down',$device); } else { - shieldKey('volume-up'); + return shieldKey('volume-up',$device); } case 'raspberry': case 'raspberrypi': diff --git a/scripts/lib/remoteinfos.php b/scripts/lib/remoteinfos.php index cb64b91..85ca75e 100644 --- a/scripts/lib/remoteinfos.php +++ b/scripts/lib/remoteinfos.php @@ -64,6 +64,13 @@ function remoteInfos() function remoteProgress($progress) { + if (config('TVPLAYER') === 'shield') { + if (shieldGetCurrentApp() === 'kodi') { + $p = json_decode(httpRequest('http://' . getDevice()['shield'] . ':8754/jsonrpc', 'post', '[{"jsonrpc":"2.0","method":"Player.Seek","params":[1,' . (round($progress * 100)) . '],"id":3}]', ['kodi', 'atacama'], 10, true, ['X-Requested-With' => 'XMLHttpRequest', 'Content-type' => 'application/json'])->getBody(), true); + } + return; + } + $playing = getPlaying(); $e = explode(':', $playing); $p = $e[0];