<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/config/music.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/music.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/bureau.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/bureau.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/lit.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/lit.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/remote.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/remote.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/sdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/sdb.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/js/home.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/home.js" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/mediarasp.php" beforeDir="false" />
+ <change beforePath="$PROJECT_DIR$/style/remote.less" beforeDir="false" afterPath="$PROJECT_DIR$/style/remote.less" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1772370387714" duration="7090000" />
<workItem from="1773390371781" duration="506000" />
<workItem from="1774028822942" duration="792000" />
- <workItem from="1774430967346" duration="5227000" />
+ <workItem from="1774430967346" duration="6009000" />
</task>
<task id="LOCAL-00502" summary=".">
<created>1641726946298</created>
<option name="project" value="LOCAL" />
<updated>1687259667913</updated>
</task>
- <option name="localTasksCounter" value="639" />
+ <option name="localTasksCounter" value="640" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
config('ROOM_NAME', 'Bureau');
config('ROOM', 'bureau');
config('SQUEEZEBOX_PLAYER', 'Bureau');
-config('VIDEOPLAYER', 'mediarasp');
config('VOLUME_DEVICE', 'harmony');
config('VOLUME_STEP', 3);
config('SLEEPTYPE', 'screensaver');
<?php
config('ROOM_NAME', 'Lit');
config('ROOM', 'chambre');
-config('VIDEOPLAYER', 'mediarasp-small');
-config('TVPLAYER', 'mediarasp-small');
config('HIDEMASK_TIMEOUT', 250);
config('VOLUME_STEP',5);
['type' => 'remote-light-down', 'width' => 1, 'height' => 1, 'top' => 2, 'left' => 5],
]];
-$bricksMediarasp = ['type' => 'mediarasp', 'width' => 7, 'height' => 4, 'bricks' => [
- ['type' => 'remote-volume', 'width' => 1, 'height' => 3, 'top' => 0, 'left' => 0],
- ['type' => 'remote-subtitles', 'width' => 1, 'height' => 3, 'top' => 0, 'left' => 6],
- ['type' => 'remote-rew', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 1],
- ['type' => 'remote-playpause', 'width' => 2, 'height' => 1, 'top' => 0, 'left' => 2],
- ['type' => 'remote-fwd', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 4],
- ['type' => 'remote-stop', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 5],
- ['type' => 'remote-infos', 'width' => 4, 'height' => 2, 'top' => 1, 'left' => 1],
- ['type' => 'remote-light-up', 'width' => 1, 'height' => 1, 'top' => 1, 'left' => 5],
- ['type' => 'remote-light-down', 'width' => 1, 'height' => 1, 'top' => 2, 'left' => 5],
- ['type' => 'remote-timeline', 'width' => 7, 'height' => 1, 'top' => 3, 'left' => 0],
-]];
-
-$bricksRaspberryCast = ['type' => 'raspberrycast', 'width' => 6, 'height' => 4, 'bricks' => [
- ['type' => 'remote-volume', 'width' => 1, 'height' => 3, 'top' => 0, 'left' => 0],
- ['type' => 'remote-rew', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 1],
- ['type' => 'remote-playpause', 'width' => 2, 'height' => 1, 'top' => 0, 'left' => 2],
- ['type' => 'remote-fwd', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 4],
- ['type' => 'remote-stop', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 5],
- ['type' => 'remote-infos', 'width' => 4, 'height' => 2, 'top' => 1, 'left' => 1],
- ['type' => 'remote-light-up', 'width' => 1, 'height' => 1, 'top' => 1, 'left' => 5],
- ['type' => 'remote-light-down', 'width' => 1, 'height' => 1, 'top' => 2, 'left' => 5],
- ['type' => 'remote-timeline', 'width' => 6, 'height' => 1, 'top' => 3, 'left' => 0],
-]];
-
-$bricksOMXRaspTV = ['type' => 'omxtv', 'width' => 6, 'height' => 4, 'bricks' => [
- ['type' => 'remote-volume', 'width' => 1, 'height' => 3, 'top' => 0, 'left' => 0],
- ['type' => 'remote-rew', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 1],
- ['type' => 'remote-playpause', 'width' => 2, 'height' => 1, 'top' => 0, 'left' => 2],
- ['type' => 'remote-fwd', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 4],
- ['type' => 'remote-stop', 'width' => 1, 'height' => 1, 'top' => 0, 'left' => 5],
- ['type' => 'remote-pip', 'width' => 4, 'height' => 2, 'top' => 1, 'left' => 1],
- ['type' => 'remote-light-up', 'width' => 1, 'height' => 1, 'top' => 1, 'left' => 5],
- ['type' => 'remote-light-down', 'width' => 1, 'height' => 1, 'top' => 2, 'left' => 5],
- ['type' => 'remote-timeline', 'width' => 6, 'height' => 1, 'top' => 3, 'left' => 0],
-]];
$shortcuts['remote-squeezebox'] = [['type' => 'bricks', 'bricks' => $bricksSqueezebox]];
-$shortcuts['remote-raspberrycast'] = [['type' => 'bricks', 'bricks' => $bricksRaspberryCast]];
-$shortcuts['remote-mediarasp'] = [['type' => 'bricks', 'bricks' => $bricksMediarasp]];
$shortcuts['remote-freebox'] = [['type' => 'bricks', 'bricks' => $bricksFreebox]];
-$shortcuts['remote-omxtv'] = [['type' => 'bricks', 'bricks' => $bricksOMXRaspTV]];
$shortcuts['remote-shield'] = [['type' => 'bricks', 'bricks' => $bricksShield]];
$shortcuts['remote-shieldmedia'] = [['type' => 'bricks', 'bricks' => $bricksShieldMedia]];
\ No newline at end of file
config('SCREENSAVER_BRIGHTNESS', 100);
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'weatherstation');
-config('VIDEOPLAYER', 'mediarasp-small');
-config('TVPLAYER', 'mediarasp-small');
config('VOLUME', 60);
config('VOLUME_DEVICE', 'Squeezebox');
config('VOLUME_STEP', 3);
return false;
});
- $(document).on(clickevent, '.media', function () {
- displayLoader($(this));
- if (CONFIG.VIDEOPLAYER === 'mediarasp-small') {
- stopSqueeze();
- screenOn(true);
- resize();
- videoPlaying = true;
- $("#scrollholder").scrollLeft(0);
- screenOn(true);
- }
-
- var href = $(this).attr('href');
- var attr;
- if (href.indexOf('://') === -1) {
- attr = '&file=' + encodeURIComponent('/nas' + href);
- } else {
- attr = '&url=' + encodeURIComponent(href);
- }
- if (CONFIG.VIDEOPLAYER === 'mediarasp-small') {
- attr += '&small=1';
- }
-
- $.get('/scripts/mediarasp.php?action=play&device=' + CONFIG.VIDEOPLAYER_DEVICE + attr, function () {
- window.location = '#/section/remote';
- hideLoader();
- }).fail(function () {
- hideLoader();
- });
- return false;
- });
$(document).on(clickevent, '.harmonyactivity', function () {
displayLoader($(this));
return false;
});
- $(document).on(clickevent, '.raspberrycast', function () {
- var url = window.prompt('Entrer l\'URL de la vidéo', '');
- if (url == null || url == '') {
- return false;
- }
-
- $.get('/scripts/mediarasp.php?action=play&device=' + CONFIG.DEVICE + '&cast=' + encodeURIComponent(url), function () {
- window.location = '#/section/remote'
- });
- return false;
- });
-
$(document).on(clickevent, '[data-screenoff]', function () {
screenOff();
return true;
function getRemoteUpdateTime(data) {
if (!data) {
return 1000;
- } else if (data.type === 'mediarasp') {
- return 5000;
} else if (data.type === 'squeezebox') {
return 2000;
}
require_once ROOT . '/scripts/lib/harmony.php';
require_once ROOT . '/scripts/lib/scenes.php';
require_once ROOT . '/scripts/lib/squeezebox.php';
-require_once ROOT . '/scripts/lib/mediarasp.php';
require_once ROOT . '/scripts/lib/http.php';
require_once ROOT . '/scripts/lib/pc.php';
require_once ROOT . '/scripts/lib/time.php';
$res = squeezeboxRemoteInfos();
} else {
if (config('TVPLAYER') === 'shield') {
- $res = ['type' => 'shield', 'can_seek' => false];
+ $res = ['type' => 'shield', 'can_seek' => false];
} else {
- if (($p === 'netflix' || $p === 'tv' || $p==='amazonprime') && config('TVPLAYER') === 'shield') {
+ if (($p === 'netflix' || $p === 'tv' || $p === 'amazonprime') && config('TVPLAYER') === 'shield') {
$res = ['type' => 'shield', 'can_seek' => false];
} else {
- if ($p == 'mediarasp' || $p === 'shieldmedia') {
- if (config('VIDEOPLAYER') === 'shield') {
- $res = ['type' => 'shieldmedia', 'can_seek' => false];
- } else {
- $res = mediaraspRemoteInfos();
- }
+ if ($p === 'shieldmedia') {
+ $res = ['type' => 'shieldmedia', 'can_seek' => false];
+
} else {
$res = ['type' => $p, 'can_seek' => false];
}
$p = $e[0];
if ($p == 'squeezebox') {
return squeezeboxRemoteProgress($progress);
- } else if ($p == 'mediarasp') {
- return mediaraspRemoteProgress($progress);
}
}
-function mediaraspRemoteInfos()
-{
- global $directories;
-
- $res['type'] = 'mediarasp';
- $res['can_seek'] = false;
- $res['duration'] = '';
- $res['time'] = '';
- $res['title'] = '';
- $res['artwork'] = '';
- $res['status'] = '';
-
- $d = getDevice();
- $playlist = simplexml_load_string(VLCCmd(['query' => 'requests/playlist.xml'], $d));
- $s = (string)VLCCmd(['query' => 'requests/status.xml'], $d);
- $status = simplexml_load_string($s);
-
- $leaf = $playlist->xpath('//leaf[@current="current"]');
- if (count($leaf) > 0) {
- $source = str_replace('file://', '', (string)$leaf[0]['uri']);
- } else {
- return $res;
- }
-
- $res['can_seek'] = true;
- $res['duration'] = intval((string)$status->xpath('//length')[0]);
- $res['time'] = intval((string)$status->xpath('//time')[0]);
- $res['status'] = $s;
-
- $playing = getPlaying();
- $e = explode(':', $playing, 3);
-
- if (count($e) === 3 && $e[0] === 'mediarasp' && $e[1] === 'cast') {
- $meta = getYoutubeDLMeta($e[2]);
- $res['title'] = $meta['title'];
- $res['artwork'] = $meta['thumbnail'];
- } else {
- $res = array_merge($res, getTitleAndArtwork($source));
- }
-
- return $res;
-}
-
function getTitleAndArtwork($source)
{
global $directories;
}
return $infos;
}
-
-function mediaraspRemoteProgress($progress)
-{
- $infos = mediaraspRemoteInfos();
- $infos['time'] = $progress * $infos['duration'];
-
- VLCCmd(['command' => 'seek', 'val' => ($progress * 100) . '%']);
- return $infos;
-}
\ No newline at end of file
+++ /dev/null
-<?php
-require_once 'import.php';
-
-if (!isset($_GET['device'])) {
- $_GET['device'] = config('DEVICE');
-}
-
-if ($_GET['action'] == 'play') {
- if (isset($_GET['file'])) {
- mediaRaspPlayMovie($_GET['file'], $_GET['device']);
- } else if (isset($_GET['url'])) {
- mediaRaspPlayStream($_GET['url'], $_GET['device']);
- } else if (isset($_GET['cast'])) {
- mediaRaspPlayCast($_GET['cast'], $_GET['device']);
- }
- echo getPlaying($_GET['device']);
-}
-
-if (isset($_GET['small']) && $_GET['small'] == 1) {
- sleep(3);
- moveVLC(false);
-}
\ No newline at end of file
top: 0;
left: 0;
- &[data-type="mediarasp"],&[data-type="raspberrycast"] {
- .brick {
- .c {
- .remote-infos {
- padding: 0;
-
- .h {
- height: 100%;
- background-size: cover;
- border-radius: 5px;
-
- .title {
- bottom: 10%;
- color: #fff;
- mix-blend-mode: exclusion;
- max-width: 80%;
- left: 10%;
- white-space: normal;
- }
- }
- }
- }
- }
- }
-
.brick {
overflow: hidden;
position: absolute;
top: 0;
left: 0;
}
-.bricks[data-type="mediarasp"] .brick .c .remote-infos,
-.bricks[data-type="raspberrycast"] .brick .c .remote-infos {
- padding: 0;
-}
-.bricks[data-type="mediarasp"] .brick .c .remote-infos .h,
-.bricks[data-type="raspberrycast"] .brick .c .remote-infos .h {
- height: 100%;
- background-size: cover;
- border-radius: 5px;
-}
-.bricks[data-type="mediarasp"] .brick .c .remote-infos .h .title,
-.bricks[data-type="raspberrycast"] .brick .c .remote-infos .h .title {
- bottom: 10%;
- color: #fff;
- mix-blend-mode: exclusion;
- max-width: 80%;
- left: 10%;
- white-space: normal;
-}
.bricks .brick {
overflow: hidden;
position: absolute;