3
我遵循google api示例上傳到YouTube。但是,如果我想上傳另一個域託管例如文件:PHP Youtube數據Api從另一個域上傳
$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
// create a new Zend_Gdata_App_MediaFileSource object
$filesource = $yt->newMediaFileSource('http://www.myotherdomain.com/.../file.mov');
$filesource->setContentType('video/x-flv');
// set slug header
$filesource->setSlug('http://www.myotherdomain.com/.../file.mov');
// add the filesource to the video entry
$myVideoEntry->setMediaSource($filesource);
任何幫助,將不勝感激