七牛云存储 - 如何用php实现持久化处理

WBOY
Release: 2016-06-06 20:43:46
Original
1420 people have browsed it

请问可以提供php端关于视频持久化处理的下载和上传的sample code吗?php的SDK也没有这部分的内容了,只有API大概讲了下有这个功能。
如果普通的下载是这个样子的

<code>                          $key= "Video (1).MOV";
                          $accessKey = '****';
                          $secretKey = '***';
                          $domain = '**.qiniudn.com';
                          Qiniu_SetKeys($accessKey, $secretKey);  
                          $baseUrl = Qiniu_RS_MakeBaseUrl($domain, $key);
                          $getPolicy = new Qiniu_RS_GetPolicy();
                          $privateUrl = $getPolicy->MakeRequest($baseUrl, null);
</code>
Copy after login
Copy after login

下载经过持久化处理的视屏有哪个地方需要改变呢?

如果能提供上传视频并且进行持久化处理的sample code感激不尽。

回复内容:

请问可以提供php端关于视频持久化处理的下载和上传的sample code吗?php的SDK也没有这部分的内容了,只有API大概讲了下有这个功能。
如果普通的下载是这个样子的

<code>                          $key= "Video (1).MOV";
                          $accessKey = '****';
                          $secretKey = '***';
                          $domain = '**.qiniudn.com';
                          Qiniu_SetKeys($accessKey, $secretKey);  
                          $baseUrl = Qiniu_RS_MakeBaseUrl($domain, $key);
                          $getPolicy = new Qiniu_RS_GetPolicy();
                          $privateUrl = $getPolicy->MakeRequest($baseUrl, null);
</code>
Copy after login
Copy after login

下载经过持久化处理的视屏有哪个地方需要改变呢?

如果能提供上传视频并且进行持久化处理的sample code感激不尽。

你看一下这个链接里面的pfop_demo.php呢,https://github.com/rwifeng/php-sdk/compare/demo

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!