From: Vincent Date: Wed, 8 Jan 2020 09:45:52 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=464bc34851d133955bb2723b1c77ab1d62499ffc;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 63e7e02..b29d71b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,7 @@ - + @@ -1191,12 +1192,12 @@ - + - + diff --git a/scripts/lib/mediarasp.php b/scripts/lib/mediarasp.php index a8f1da6..8c3292d 100644 --- a/scripts/lib/mediarasp.php +++ b/scripts/lib/mediarasp.php @@ -345,9 +345,17 @@ function mediaRaspPlayCast($castURL, $device = null) if (null === $device) { $device = config('DEVICE'); } + if ($device === 'bureau') { + $height = 720; + } else if ($device === 'salon') { + $height = 1080; + } else { + $height = 640; + } + setPlaying('mediarasp:cast:' . $castURL); mediaRaspCommons($device); - $dest = downloadYoutubeDL($castURL, 1080, true, 'mkv'); + $dest = downloadYoutubeDL($castURL, $height, true, 'mkv'); getYoutubeDLMeta($castURL); $res = VLCPlay($dest, $device); mediaRaspPostPlay($device);