php - What does the insertEntry in YOUTUBE API return? -
this use upload video youtube using youtube api.
$newentry = $yt->insertentry($myvideoentry, $uploadurl, 'zend_gdata_youtube_videoentry');
once upload, how can unique code of video uploaded ?? mean is, in url, http://www.youtube.com/watch?v=pbi3lc18k8q
"pbi3lc18k8q" unique code video. so, how video uploaded??
do code after upload it:
// assuming $videoentry object returned during upload $state = $videoentry->getvideostate(); if ($state) { echo 'upload status video id ' . $videoentry->getvideoid() . ' ' . $state->getname() . ' - ' . $state->gettext() . "\n"; } else { echo "not able retrieve video status information yet. " . "please try again later.\n"; }
Comments
Post a Comment