Exemplo n.º 1
0
Arquivo: Menu.php Projeto: cwcw/cms
 /**
  * Play the "no key" prompt
  *
  * @return boolean
  */
 protected function _playNoKeyPrompt()
 {
     $noKeyPromptPlaylist = $this->_options[self::OPT_NO_KEY_PROMPT_PLAYLIST];
     $this->_mediaPlayer->reset();
     $this->_mediaPlayer->addEventListener(Streamwide_Engine_Events_Event::FINISHED, array('callback' => array($this, 'onNoKeyPromptFinished'), 'options' => array('autoRemove' => 'before')));
     $this->_mediaPlayer->setPlaylist($noKeyPromptPlaylist);
     $playing = $this->_mediaPlayer->play();
     if (!$playing) {
         $this->_mediaPlayer->flushEventListeners();
     }
     return $playing;
 }
Exemplo n.º 2
0
Arquivo: Sender.php Projeto: cwcw/cms
 /**
  * Play the fax tone for an hour
  *
  * @return void
  */
 protected function _playFaxTone()
 {
     $playlist = array(new Streamwide_Engine_Media_Fax_Tone(null, null, self::FAX_TONE_DURATION));
     $this->_mediaPlayer->reset();
     $this->_mediaPlayer->setMediaServerCallLeg($this->_msCallLeg);
     $this->_mediaPlayer->setPlaylist($playlist);
     $this->_mediaPlayer->play();
 }