public function pauseAction()
 {
     X_Env::debug(__METHOD__);
     $this->vlc->pause();
     if (strpos($_SERVER['HTTP_USER_AGENT'], 'WiiMC') !== false) {
         // wiimc 1.0.5 e inferiori nn accetta redirect
         $this->_forward('control');
     } else {
         $isAjax = $this->getRequest()->getParam('ajax', false);
         if ($isAjax) {
             $this->_forward('status');
         } else {
             $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
             $redirector->gotoSimpleAndExit('control');
         }
     }
 }
Ejemplo n.º 2
0
 private function _action_pause(X_Vlc $vlc, $param)
 {
     $vlc->pause();
 }