CC-2727: Limit number of streams and max bitrate
- create airtime-stream php script to set number of streams and max bitrate - the stream section itself is not displayed rather than grey out
This commit is contained in:
parent
d992457bd5
commit
b92793e80f
6 changed files with 146 additions and 4 deletions
|
@ -139,12 +139,15 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
$temp_bitrate = Application_Model_Preference::GetStreamBitrate();
|
||||
$max_bitrate = intval(Application_Model_Preference::GetMaxBitrate());
|
||||
$stream_bitrates = array();
|
||||
foreach ($temp_bitrate as $type){
|
||||
$stream_bitrates[trim($type)] = strtoupper(trim($type))." Kbit/s";
|
||||
if(intval($type) <= $max_bitrate){
|
||||
$stream_bitrates[trim($type)] = strtoupper(trim($type))." Kbit/s";
|
||||
}
|
||||
}
|
||||
|
||||
$num_of_stream = 3;
|
||||
$num_of_stream = intval(Application_Model_Preference::GetNumOfStream());
|
||||
$form = new Application_Form_StreamSetting();
|
||||
$form->setSetting($setting);
|
||||
$form->startFrom();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue