Skip to content

Commit 1cd5b78

Browse files
committed
add saveas
1 parent 279c337 commit 1cd5b78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pfop_demo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88

99
$pfop->Bucket = "auditlog";
1010
$pfop->Key = "1.mp4";
11+
12+
$savedKey = "6.m3u8";
1113
// $pfop->Fops = "avthumb/flv/r/24/vcodec/libx264";
12-
$pfop->Fops = "avthumb/m3u8/segtime/1";
14+
$savedEntry = Qiniu_Encode("$pfop->Bucket:$savedKey");
15+
16+
$pfop->Fops = "avthumb/m3u8/segtime/60|saveas/$savedEntry";
1317
$pfop->NotifyURL = "http://api.rwfeng.com/index.php";
1418

1519
list($ret, $err) = $pfop->MakeRequest($client);

0 commit comments

Comments
 (0)