CC-3224: "On-the-fly" stream rebroadcasting

- Form in preference section
This commit is contained in:
James 2012-02-06 17:51:02 -05:00
parent 309c6da83d
commit ca04a7a686
6 changed files with 142 additions and 1 deletions

View file

@ -700,6 +700,36 @@ class Application_Model_Preference
return $val;
}
/*
* $value should be 1 or 0
*/
public static function SetLiveSteamAutoEnable($value){
self::SetValue("live_stream_auto_enable", $value, false);
}
public static function GetLiveSteamAutoEnable(){
if(self::GetValue("live_stream_auto_enable") == Null){
return 0;
}
return self::GetValue("live_stream_auto_enable");
}
public static function SetLiveSteamMasterUsername($value){
self::SetValue("live_stream_master_username", $value, false);
}
public static function GetLiveSteamMasterUsername(){
return self::GetValue("live_stream_master_username");
}
public static function SetLiveSteamMasterPassword($value){
self::SetValue("live_stream_master_password", $value, false);
}
public static function GetLiveSteamMasterPassword(){
return self::GetValue("live_stream_master_username");
}
/* User specific preferences end */
}