Tuesday, January 11, 2011

Upload video from any format and view your video in the site - With youtube API

You will need : Developer Key for Youtube you can request it from google code if you have register on youtube using your gmail id go to here and get http://code.google.com/apis/youtube/dashboard/gwt/index.html

And paste the you tube developer key in the ClassYouTubeAPI.php page
public $developerKey = "Your key";

And add your username and password of the youtube account in example.php page

$username ='Your username for youtube account';
$pass='Your password for youtube account';

Sometimes you may get the error saying "maximum execution timeout" , then what you have to do is go to the php.ini file and change the max_execution_time = 30 to something bigger, or you can put 0.

So i hope your headache to convert videos and upload to web sites is solved now


And do not forget it's having the functions to 


  • Create Play List
  • Delete Play list
  • Get Play lists
  • Get Videos by Play List Id
  • Add Video To Play List
  • DeleteVideo From Play List
  • Get Videos by Play List Id




No comments:

Post a Comment