Player Control
Добавлено: Чт ноя 28, 2013 9:29 am
Обсуждение страницы Player Control
Код: Выделить всё
vlc -I http
Код: Выделить всё
<option value="foobar"[#if PLAYER_TYPE=="foobar"#] selected[#endif#]>Foobar2000
Код: Выделить всё
<option value="foobar"[#if PLAYER_TYPE=="foobar"#] selected[#endif#]>Foobar2000
<option value="vlcweb"[#if PLAYER_TYPE=="vlcweb"#] selected[#endif#]>VLC over HTTP
Код: Выделить всё
} elseif ($terminal['PLAYER_TYPE']=='foobar') {
include(DIR_MODULES.'app_player/foobar.php');
Код: Выделить всё
} elseif ($terminal['PLAYER_TYPE']=='foobar') {
include(DIR_MODULES.'app_player/foobar.php');
} elseif ($terminal['PLAYER_TYPE']=='vlcweb') {
include(DIR_MODULES.'app_player/vlcweb.php');
Код: Выделить всё
<?php
/**
* Title: VLC over HTTP
*
* Description
*
* @access public
*/
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$uid = rand(1, 9999999);
if ($command=='refresh') {
$out['PLAY']=preg_replace('/\\\\$/is', '', $out['PLAY']);
// $path=str_replace('/', "\\", ($out['PLAY']));
$path=$out['PLAY'];
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=in_play&input=".urlencode($path));
$res=curl_exec($ch);
}
if ($command=='pause') {
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=pl_pause");
$res=curl_exec($ch);
}
if ($command=='fullscreen') {
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=fullscreen");
$res=curl_exec($ch);
}
if ($command=='next') {
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=pl_next");
$res=curl_exec($ch);
}
if ($command=='prev') {
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=pl_previous");
$res=curl_exec($ch);
}
if ($command=='close') {
curl_setopt($ch, CURLOPT_URL, "http://".$terminal['HOST'].":".$terminal['PLAYER_PORT']."/requests/status.xml?command=pl_stop");
$res=curl_exec($ch);
}
$res=''; // ->NULL
//print_r();
?>
Код: Выделить всё
if ($params['VALUE']){
$this->setProperty('volumeLevel',$params['VALUE']);
}
$volume = $this->getProperty('volumeLevel');
safe_exec('amixer set Master '.$volume.'% unmute');
say("Изменилась громкость до ".$params['VALUE']." процентов");
А страница - пустаmsh555 писал(а):Обсуждение страницы Player Control
А вот где пароль ставить - ненашелmsh555 писал(а):Под виндой в настройках поставлена галка WEB (и задан пароль, без него не работает)
наверное под Линухом смотришь? Там нету. А под виндой естьBlackWarrior писал(а):А вот где пароль ставить - ненашелmsh555 писал(а):Под виндой в настройках поставлена галка WEB (и задан пароль, без него не работает)