Exemplo n.º 1
0
 /**
  * returns the video player code, if the input is URL
  *
  * @param int $width width of video player
  * @param int $height height of video playe
  * @param int $autoPlay autocomplete option
  * @return HTML player code
  */
 public function getFeed($width = 640, $height = 385, $autoPlay = 0)
 {
     $get_url_feed = new IzapVideos();
     $feed = $get_url_feed->input($this->input_object, 'url');
     $get_url_feed->videosrc = $feed->videoSrc;
     $get_url_feed->converted = 'yes';
     $player = $get_url_feed->getPlayer($width, $height, $autoPlay);
     return $player;
 }
Exemplo n.º 2
0
 /**
  * returns the video player code, if the input is URL
  *
  * @param int $width width of video player
  * @param int $height height of video playe
  * @param int $autoPlay autocomplete option
  * @return HTML player code
  */
 public function getFeed($width = 600, $height = 360, $autoPlay = 0)
 {
     $get_url_feed = new IzapVideos();
     $feed = $get_url_feed->input($this->input_object, 'url');
     // in case there is an error
     if (!is_object($feed)) {
         return elgg_echo('izap_videos:error:code:' . $feed);
     }
     $get_url_feed->videotype = $feed->type;
     $get_url_feed->videosrc = $feed->videoSrc;
     $get_url_feed->converted = 'yes';
     $player = $get_url_feed->getPlayer($width, $height, $autoPlay);
     return $player;
 }