在AJAX/PHP中获取Vimeo上传进度

在AJAX/PHP中获取Vimeo上传进度,php,ajax,upload,vimeo,put,Php,Ajax,Upload,Vimeo,Put,我正在尝试合并Vimeo PHP库(http://github.com/vimeo/vimeo-php-lib/blob/master/vimeo.php)使用BlueImp的jQuery文件上传程序(https://github.com/blueimp/jQuery-File-Upload). 我的问题是在上传过程中获取进度事件,这可能吗?这是我上传的临时页面(视频上传是临时硬编码的) 以及500号线附近,具有以下内容: //store ticket id to session variabl

我正在尝试合并Vimeo PHP库(http://github.com/vimeo/vimeo-php-lib/blob/master/vimeo.php)使用BlueImp的jQuery文件上传程序(https://github.com/blueimp/jQuery-File-Upload). 我的问题是在上传过程中获取进度事件,这可能吗?这是我上传的临时页面(视频上传是临时硬编码的)

以及500号线附近,具有以下内容:

//store ticket id to session variable so we can check upload status, or resume progress indicator if page is reloaded (doesn't work if browser is closed)
session_start(); 
$_SESSION['ticket']=$ticket;
$_SESSION['endpoint']=$endpoint;
// Confirmation successful, return video id
if ($complete->stat == 'ok') {
//upload was successful, we do not need to store this variable to check progress anymore
unset($_SESSION['ticket']);
unset($_SESSION['endpoint']);
$_SESSION['last_upload'] = 'http://vimeo.com/'.$complete->ticket->video_id;
return $complete->ticket->video_id;
}

有什么想法吗?

你的问题有进展吗?我也对解决这个问题感兴趣。谢谢!:)
// Confirmation successful, return video id
if ($complete->stat == 'ok') {
//upload was successful, we do not need to store this variable to check progress anymore
unset($_SESSION['ticket']);
unset($_SESSION['endpoint']);
$_SESSION['last_upload'] = 'http://vimeo.com/'.$complete->ticket->video_id;
return $complete->ticket->video_id;
}