SAAS-643: Embed Player -> Restrict the setting of an OPUS stream
This commit is contained in:
parent
694430f542
commit
dc0855de18
3 changed files with 9 additions and 1 deletions
|
@ -11,7 +11,12 @@ class EmbeddablePlayerController extends Zend_Controller_Action
|
|||
{
|
||||
$form = new Application_Form_EmbeddablePlayer();
|
||||
|
||||
$this->view->form = $form;
|
||||
if ($form->getElement('player_stream_url')->getAttrib('numberOfEnabledStreams') > 0) {
|
||||
$this->view->form = $form;
|
||||
} else {
|
||||
$this->view->errorMsg = "You need to enable at least one MP3, AAC, or OGG stream to use this feature.";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function embedCodeAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue