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.
 
 
 
 
 
 

54 lines
964 B

<?php
include 'DemoBase.php';
global $client;
$body = [
'PresetList' => []
];
$response = $client->listCommonTransPresetDetail(['json' => $body]);
echo $response;
echo '<br>';
$body = [
'Vhost' => 'vhost',
'App' => 'app',
'Status' => 0,
'SuffixName' => 'xx',
'Preset' => 'test',
'FPS' => 30,
];
$response = $client->createTranscodePreset(['json' => $body]);
echo $response;
echo '<br>';
$body = [
'Vhost' => 'vhost',
'App' => 'app',
'Status' => 0,
'SuffixName' => 'xx2',
'Preset' => 'test',
'FPS' => 60,
];
$response = $client->updateTranscodePreset(['json' => $body]);
echo $response;
echo '<br>';
$body = [
'Vhost' => 'vhost',
'App' => 'app',
'Preset' => 'test',
];
$response = $client->deleteTranscodePreset(['json' => $body]);
echo $response;
echo '<br>';
$body = [
'Vhost' => 'vhost',
];
$response = $client->listVhostTransCodePreset(['json' => $body]);
echo $response;
echo '<br>';