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

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

WBOY
Release: 2016-06-06 20:36:43
Original
1236 people have browsed it

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

<code>$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);
</code>
Copy after login
Copy after login

回复内容:

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

<code>$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);
</code>
Copy after login
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template