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:
james 2011-11-13 15:34:26 -05:00
parent 68f142470a
commit 8e283c9e02
2 changed files with 24 additions and 1 deletions

View file

@ -30,7 +30,9 @@ function rebuildStreamURL(ele){
function restrictOggBitrate(ele, on){
var div = ele.closest("div")
if(on){
div.find("select[id$=data-bitrate]").find("option[value='48']").attr('selected','selected');
if(parseInt(div.find("select[id$=data-bitrate]").val(),10) < 48){
div.find("select[id$=data-bitrate]").find("option[value='48']").attr("selected","selected");
}
div.find("select[id$=data-bitrate]").find("option[value='24']").attr("disabled","disabled");
div.find("select[id$=data-bitrate]").find("option[value='32']").attr("disabled","disabled");
}else{