周总批发商场
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
dianshang/crmeb/vendor/volcengine/volc-sdk-php/examples/VEdit/DemoSubmitDirectEditTask.php

45 lines
969 B

<?php
require('../../vendor/autoload.php');
use Volc\Service\VEdit;
$client = VEdit::getInstance();
// $client->setAccessKey($ak);
// $client->setSecretKey($sk);
// async
// your custom editParam
// below just an example, not complete
$editParam = [
'Upload' => [
'Uploader' => 'your uploader',
'VideoName' => 'your videoName',
],
'Output' => [
'Fps' => 25,
'Height' => 720,
'Width' => 1280,
'Quality' => 'medium',
],
'Segments' => [[
'BackGround' => '0xFFFFFFFF',
'Duration' => 3,
'Elements' => [],
'Volume' => 1,
]],
'GlobalElements' => []
];
$body = [
'EditParam' => $editParam,
'CallbackArgs' => 'test args',
'CallbackUri' => 'test callbackUri'
];
$response = $client->submitDirectEditTaskAsync(['json' => $body]);
echo $response;
// get results
$response = $client->getDirectEditResult(['json' => ['ReqIds' => ['123']]]);
echo $response;