PHP code example of bryanthw1020 / live-video-broadcast-manager
1. Go to this page and download the library: Download bryanthw1020/live-video-broadcast-manager library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bryanthw1020 / live-video-broadcast-manager example snippets
# Get Online Live Stream List
LiveVideoBroadcastManager::liveStreamOnlineList(string $appName = "live", string $streamName = "", string $region = "ap-singapore", string $endpoint = "live.tencentcloudapi.com", int $pageNum = 1, int $pageSize = 20);
## Example
LiveVideoBroadcastManager::liveStreamOnlineList();
# Block Live Stream
LiveVideoBroadcastManager::blockLiveStream(string $streamName, string $reason, string $appName = "live", string $region = "ap-singapore", string $endpoint = "live.tencentcloudapi.com");
## Example
LiveVideoBroadcastManager::blockLiveStream("1400292776_959_118_main", "Forbidden equipment on air.");
# Resume Live Stream
LiveVideoBroadcastManager::resumeLiveStream(string $streamName, string $appName = "live", string $region = "ap-singapore", string $endpoint = "live.tencentcloudapi.com");
## Example
LiveVideoBroadcastManager::resumeLiveStream("1400292776_959_118_main");