CC-3927: Should automatically switch back to Master/Show stream if there is a
connection interruption - done
This commit is contained in:
parent
4bcf904f92
commit
b23e3d0a54
6 changed files with 60 additions and 6 deletions
|
@ -805,9 +805,10 @@ class ApiController extends Zend_Controller_Action
|
|||
$msg = $request->getParam('msg');
|
||||
$sourcename = $request->getParam('sourcename');
|
||||
$status = $request->getParam('status');
|
||||
|
||||
|
||||
// on source disconnection sent msg to pypo to turn off the switch
|
||||
if($status == "false"){
|
||||
// Added AutoTransition option
|
||||
if($status == "false" && Application_Model_Preference::GetAutoTransition()){
|
||||
$data = array("sourcename"=>$sourcename, "status"=>"off");
|
||||
Application_Model_RabbitMq::SendMessageToPypo("switch_source", $data);
|
||||
Application_Model_Preference::SetSourceSwitchStatus($sourcename, "off");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue