SAAS-66: Ability to set the stream values from the command line
- done - extra fix: Fixed a javascript issue when it always changed bitrate to 48, when type is set to ogg
This commit is contained in:
parent
68f142470a
commit
8e283c9e02
2 changed files with 24 additions and 1 deletions
|
@ -50,6 +50,13 @@ class Application_Model_StreamSetting {
|
|||
return $rows;
|
||||
}
|
||||
|
||||
/*
|
||||
* function that take all the information of stream and sets them.
|
||||
* This is used by stream setting via UI.
|
||||
*
|
||||
* @param $data - array that contains all the data. $data is [][] which
|
||||
* contains multiple stream information
|
||||
*/
|
||||
public static function setStreamSetting($data){
|
||||
global $CC_DBC;
|
||||
foreach($data as $key=>$d){
|
||||
|
@ -76,6 +83,20 @@ class Application_Model_StreamSetting {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets indivisual stream setting.
|
||||
*
|
||||
* $data - data array. $data is [].
|
||||
*/
|
||||
public static function setIndivisualStreamSetting($data){
|
||||
global $CC_DBC;
|
||||
|
||||
foreach($data as $keyname => $v){
|
||||
$sql = "UPDATE cc_stream_setting SET value='$v' WHERE keyname='$keyname'";
|
||||
$CC_DBC->query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
public static function setLiquidsoapError($stream_id, $msg){
|
||||
global $CC_DBC;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue