YouTube API v2.0 – Browser-based Uploading

Hi guys. Does anybody know how to use Yii to allow users to upload videos directly to youtube. Any extension for it ?

https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading

I found this interesting tutorial… of how we can integrate Zend gdata. http://blogs.coldbuffer.com/update-uploading-videos-using-youtube-api

How I would like to know how can I manage the routing options especially for this code given that I want the user to upload the video with other form elements.


 <?php

	$video = new Zend_Gdata_YouTube_VideoEntry();

	$video->setVideoTitle('YOUR VIDEO TITLE HERE');

	$video->setVideoDescription('YOUR VIDEO DESCRIPTION HERE');

	$video->setVideoPrivate();

	$video->setVideoCategory('YOUR VIDEO CATEGORY HERE');

	$video->SetVideoTags('YOUR VIDEO TAGS HERE');

	$handler_url	= 'http://gdata.youtube.com/action/GetUploadToken';

	$token_array	= $yt->getFormUploadToken($video, $handler_url);

	$token		= $token_array['token'];

	$post_url	= $token_array['url'];

	$next_url 	= 'YOUR NEXT YOUR URL';

 ?>

Please do not make double posts on different forum sections, it’s not needed - http://www.yiiframew…__1#entry168552