예제 #1
0
 /**
  * Load video data using video id
  * @param String $videoId
  */
 public function load($videoId)
 {
     $youtube = new YouTube($this->_developerKey);
     $videoData = $youtube->getVideo($videoId);
     if ($videoData != "BAD_REQUEST") {
         $xml = new SimpleXMLElement($videoData);
         $this->_load($xml);
     }
 }