From 464bc34851d133955bb2723b1c77ab1d62499ffc Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 8 Jan 2020 10:45:52 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 25 +++++++++++++------------ scripts/lib/mediarasp.php | 10 +++++++++- 2 files changed, 22 insertions(+), 13 deletions(-) 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); -- 2.39.5