123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?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>';
|