CC-3405: Display to users how to connect a live stream to Airtime
- Done
This commit is contained in:
parent
540f262a77
commit
79f8eabe2b
8 changed files with 125 additions and 28 deletions
|
@ -14,6 +14,7 @@ class PreferenceController extends Zend_Controller_Action
|
|||
->addActionContext('is-import-in-progress', 'json')
|
||||
->addActionContext('change-stream-setting', 'json')
|
||||
->addActionContext('get-liquidsoap-status', 'json')
|
||||
->addActionContext('set-source-connection-url', 'json')
|
||||
->initContext();
|
||||
}
|
||||
|
||||
|
@ -335,6 +336,19 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
die(json_encode($out));
|
||||
}
|
||||
|
||||
public function setSourceConnectionUrlAction(){
|
||||
$request = $this->getRequest();
|
||||
$type = $request->getParam("type", null);
|
||||
$url = urldecode($request->getParam("url", null));
|
||||
|
||||
if($type == 'masterdj'){
|
||||
Application_Model_Preference::SetMasterDJSourceConnectionURL($url);
|
||||
}elseif($type == 'livedj'){
|
||||
Application_Model_Preference::SetLiveDJSourceConnectionURL($url);
|
||||
}
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue