提交的内容
This commit is contained in:
15
vendor/qcloud/cos-sdk-v5/sample/describeMediaJobs.php
vendored
Executable file → Normal file
15
vendor/qcloud/cos-sdk-v5/sample/describeMediaJobs.php
vendored
Executable file → Normal file
@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio
|
||||
$cosClient = new Qcloud\Cos\Client(
|
||||
array(
|
||||
'region' => $region,
|
||||
'schema' => 'https', //协议头部,默认为http
|
||||
'scheme' => 'https', //协议头部,默认为http
|
||||
'credentials'=> array(
|
||||
'secretId' => $secretId,
|
||||
'secretKey' => $secretKey)));
|
||||
@ -16,12 +16,21 @@ try {
|
||||
/*
|
||||
拉取符合条件的任务, 支持
|
||||
Transcode、Snapshot、Animation、Concat、SmartCover、VideoProcess、VideoMontage、VoiceSeparate、SDRtoHDR、
|
||||
DigitalWatermark、ExtractDigitalWatermark、SuperResolution、VideoTag、PicProcess、Segment
|
||||
DigitalWatermark、ExtractDigitalWatermark、SuperResolution、VideoTag、PicProcess、Segment 等
|
||||
*/
|
||||
$result = $cosClient->describeMediaJobs(array(
|
||||
'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
|
||||
'Tag' => 'Transcode', // 任务 的Tag
|
||||
'QueueId' => 'paaf4fce5521a40888a3034a5dxxxxxxx', // queueId
|
||||
// 'QueueId' => '', // queueId
|
||||
// 'OrderByTime' => '',
|
||||
// 'NextToken' => '',
|
||||
// 'Size' => '',
|
||||
// 'States' => '',
|
||||
// 'StartCreationTime' => '',
|
||||
// 'EndCreationTime' => '',
|
||||
// 'WorkflowId' => '',
|
||||
// 'InventoryTriggerJobId' => '',
|
||||
// 'InputObject' => '',
|
||||
));
|
||||
// 请求成功
|
||||
print_r($result);
|
||||
|
||||
Reference in New Issue
Block a user