We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a624077 commit 9715373Copy full SHA for 9715373
demo/pfop1.php
@@ -0,0 +1,27 @@
1
+<?php
2
+require_once __DIR__ . '/../vendor/autoload.php';
3
+
4
+use Qiniu\Auth;
5
+use Qiniu\Processing\PersistentFop;
6
7
+$accessKey = '<your_ak>';
8
+$secretKey = '<your_sk>';
9
+$auth = new Auth($accessKey, $secretKey);
10
11
+$bucket = 'rwxf';
12
+$key = '1.mp4';
13
+$pipeline = 'abc';
14
+$pfop = New PersistentFop($auth, $bucket, $pipeline);
15
16
+$key1 = 'saved.mp4';
17
+$entry1 = \Qiniu\base64_urlSafeEncode("$bucket:$key1");
18
+$fops = "avthumb/mp4/ss/60/t/60|saveas/$entry";
19
20
21
+list($id, $err) = $pfop->execute($key, $fops);
22
+echo "\n====> pfop avthumb result: \n";
23
+if ($err != null) {
24
+ var_dump($err);
25
+} else {
26
+ echo "PersistentFop Id: $id\n";
27
+}
0 commit comments