public function seekAction()
 {
     X_Env::debug(__METHOD__);
     $request = $this->getRequest();
     $time = (int) $request->getParam('time', 5 * 60);
     $relative = (bool) $request->getParam('time', true);
     $this->vlc->seek($time, $relative);
     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');
         }
     }
 }
예제 #2
0
 private function _action_back(X_Vlc $vlc, $param)
 {
     $time = abs((int) $param * 60) * -1;
     $vlc->seek($time, true);
 }