CC-2607: Abilitiy to adjust stream bitrate, type, etc from the UI
interface - dummy page "Stream Setting" page for the test - StreamSetting model is added - set owner and group as 'pypo' for liquidsoap.cfg - pypofech handle 'update_stream_setting' command
This commit is contained in:
parent
e18c0903cb
commit
4f2b2dba6d
12 changed files with 174 additions and 30 deletions
|
@ -57,7 +57,7 @@ class RabbitMq
|
|||
$channel = $conn->channel();
|
||||
$channel->access_request($CC_CONFIG["rabbitmq"]["vhost"], false, false, true, true);
|
||||
|
||||
$EXCHANGE = 'airtime-schedule';
|
||||
$EXCHANGE = 'airtime-pypo';
|
||||
$channel->exchange_declare($EXCHANGE, 'direct', false, true);
|
||||
|
||||
$data = json_encode($md);
|
||||
|
|
14
airtime_mvc/application/models/StreamSetting.php
Normal file
14
airtime_mvc/application/models/StreamSetting.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
class Application_Model_StreamSetting {
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
public static function getStreamSetting(){
|
||||
global $CC_DBC;
|
||||
$sql = "SELECT *"
|
||||
." FROM cc_stream_setting";
|
||||
|
||||
$rows = $CC_DBC->getAll($sql);
|
||||
return $rows;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue