Open tiehongji opened 2 months ago
<?php
use xxx\xxx\xxx\xxx\xxx;
$liveClient = new xxx([ 'regionId' => 'xxx', ]);
try { $response = $liveClient->startLiveStream([ 'StreamName' => 'my_stream_name', 'DomainName' => 'my_domain_name.com', 'AppName' => 'my_app_name', 'Description' => 'My live stream description' ]);
$streamInfo = $response->getData(); echo "Stream started successfully. Stream URL: " . $streamInfo['PlayUrl'];
} catch (\xxx\xxx\Exception\VolcException $e) { echo "Error: " . $e->getMessage(); }
throw error; ^
Error: Bad terminal sequence " " at line 4 (offset 28) System error occurred in network function
<?php
use xxx\xxx\xxx\xxx\xxx;
$liveClient = new xxx([ 'regionId' => 'xxx', ]);
try { $response = $liveClient->startLiveStream([ 'StreamName' => 'my_stream_name', 'DomainName' => 'my_domain_name.com', 'AppName' => 'my_app_name', 'Description' => 'My live stream description' ]);
} catch (\xxx\xxx\Exception\VolcException $e) { echo "Error: " . $e->getMessage(); }
Error: Bad terminal sequence " " at line 4 (offset 28) System error occurred in network function