Ejemplo n.º 1
0
 /**
  * Initialize the video
  */
 private function _initVideo()
 {
     $videoType = StreamVideo::getType($this->source);
     $video = StreamVideo::getVideo($videoType);
     if ($video->init($this->source)) {
         $this->title = $video->getTitle();
         $this->description = $video->getDescription();
         $this->duration = $video->getDuration();
         $this->type = $video->getType();
         $this->thumb = $video->getThumbnail();
         $this->video_id = $video->getId();
     }
 }