parseVIdFromURL() public static method

Support both full URL (www.youtube.com) and short URL (youtu.be)
public static parseVIdFromURL ( string $youtube_url ) : string
$youtube_url string
return string Video Id
Esempio n. 1
0
 /**
  *
  *
  * @expectedException \Exception
  */
 public function testParseVIdException()
 {
     $vId = $this->youtube->parseVIdFromURL('http://www.facebook.com');
 }