mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
45 lines
2.0 KiB
PHP
45 lines
2.0 KiB
PHP
// Code generated by protoc-gen-volcengine-sdk
|
|
// source: getMLFramesForAudit
|
|
// DO NOT EDIT!
|
|
<?php
|
|
require('../../vendor/autoload.php');
|
|
|
|
// Create a VOD instance in the specified region.
|
|
// $client = Volc\Service\Vod\Vod::getInstance('cn-north-1');
|
|
$client = Volc\Service\Vod\Vod::getInstance();
|
|
|
|
// Configure your Access Key ID (AK) and Secret Access Key (SK) in the environment variables or in the local ~/.volc/config file. For detailed instructions, see https://www.volcengine.com/docs/4/4408.
|
|
// The SDK will automatically fetch the AK and SK from the environment variables or the ~/.volc/config file as needed.
|
|
// During testing, you may use the following code snippet. However, do not store the AK and SK directly in your project code to prevent potential leakage and safeguard the security of all resources associated with your account.
|
|
// $client->setAccessKey('your ak');
|
|
// $client->setSecretKey('your sk');
|
|
|
|
$request = new Volc\Service\Vod\Models\Request\VodGetMLFramesForAuditRequest();
|
|
$request->setVid("your Vid");
|
|
$request->setStrategy("your Strategy");
|
|
$request->setFrameOpt("your FrameOpt");
|
|
$request->setFrameFps("your FrameFps");
|
|
$request->setNumberOfFrames("your NumberOfFrames");
|
|
$request->setCutTimeMills("your CutTimeMills");
|
|
$request->setNeedFirstFrame("your NeedFirstFrame");
|
|
$request->setNeedLastFrame("your NeedLastFrame");
|
|
$request->setStartTimeMill("your StartTimeMill");
|
|
$request->setEndTimeMill("your EndTimeMill");
|
|
$request->setMinNumberOfFrames("your MinNumberOfFrames");
|
|
$request->setMaxNumberOfFrames("your MaxNumberOfFrames");
|
|
|
|
|
|
$response = new Volc\Service\Vod\Models\Response\VodGetMLFramesForAuditResponse();
|
|
try {
|
|
$response = $client->getMLFramesForAudit($request);
|
|
} catch (Exception $e) {
|
|
echo $e, "\n";
|
|
} catch (Throwable $e) {
|
|
echo $e, "\n";
|
|
}
|
|
if ($response != null && $response->getResponseMetadata() != null && $response->getResponseMetadata()->getError() != null) {
|
|
echo $response->getResponseMetadata()->getError()->serializeToJsonString(), "\n";
|
|
} else {
|
|
echo $response->serializeToJsonString(), "\n";
|
|
}
|