SAAS-643: Embed Player -> Restrict the setting of an OPUS stream

This commit is contained in:
drigato 2015-03-16 11:29:24 -04:00
parent 694430f542
commit dc0855de18
3 changed files with 9 additions and 1 deletions

View file

@ -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()