欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php问题 - PHP上传视频转码如何取到返回的persistentId值?

程序员文章站 2022-04-23 13:27:24
...
PHP上传视频转码如何取到 hash FpjkD7IOJe2vgI6sRMi-0erHYLaz key FpjkD7IOJe2vgI6sRMi-0erHYLaz persistentId 551903297823de4068cc6910 这些数据?
$putPolicy = new Qiniu_RS_PutPolicy($bucket);

$putPolicy->Scope               = "{$bucket}";
$putPolicy->Expires             = time() + (24 * 60 * 60);//24小时

$sFileName   = Qiniu_Encode("qiniu:{$newFileName}.mp4");//domain: 


$putPolicy->PersistentOps       = "avthumb/mp4/r/24/vcodec/libx264/acodec/libfaac|saveas/{$sFileName}";
$putPolicy->PersistentNotifyUrl = 'http://t.refineit.cn:88/qiniu2/p_notify_url.php';
$upToken = $putPolicy->Token(null);

回复内容:

PHP上传视频转码如何取到 hash FpjkD7IOJe2vgI6sRMi-0erHYLaz key FpjkD7IOJe2vgI6sRMi-0erHYLaz persistentId 551903297823de4068cc6910 这些数据?

$putPolicy = new Qiniu_RS_PutPolicy($bucket);

$putPolicy->Scope               = "{$bucket}";
$putPolicy->Expires             = time() + (24 * 60 * 60);//24小时

$sFileName   = Qiniu_Encode("qiniu:{$newFileName}.mp4");//domain: 


$putPolicy->PersistentOps       = "avthumb/mp4/r/24/vcodec/libx264/acodec/libfaac|saveas/{$sFileName}";
$putPolicy->PersistentNotifyUrl = 'http://t.refineit.cn:88/qiniu2/p_notify_url.php';
$upToken = $putPolicy->Token(null);
相关标签: php php问题