Exemplo n.º 1
0
 public function run($params = array(), X_Threads_Thread $thread)
 {
     $this->thread = $thread;
     $streamerId = X_Env::isset_or($params['streamerId'], false);
     $streamerClass = X_Env::isset_or($params['streamerClass'], false);
     $params = X_Env::isset_or($params['params'], array());
     if (!$streamerId) {
         $thread->log("Sorry dude, no streamerId submitted. Can't do anything");
         return X_Threads_Thread::RETURN_INVALID_PARAMS;
     }
     /* @var $streamer X_Streamer_Engine_Vlc */
     $streamer = X_VlcShares_Plugins::helpers()->streamer()->get($streamerId);
     $streamer->setParams($params);
     $streamer->startEngine($thread);
     return self::RETURN_NORMAL;
 }
Exemplo n.º 2
0
 /**
  * @deprecated use X_Env::isset_or
  * @param mixed $value
  * @param mixed $alternative
  * @return mixed
  */
 static function isset_or($value, $alternative)
 {
     return X_Env::isset_or($value, $alternative);
 }