https://github.com/bryanthw1020/live-video-broadcast-manager
Laravel live video broadcast manager for Tencent LVB service integration
https://github.com/bryanthw1020/live-video-broadcast-manager
laravel tencent-cloud
Last synced: 5 months ago
JSON representation
Laravel live video broadcast manager for Tencent LVB service integration
- Host: GitHub
- URL: https://github.com/bryanthw1020/live-video-broadcast-manager
- Owner: bryanthw1020
- License: mit
- Created: 2020-02-04T07:02:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T09:48:22.000Z (over 3 years ago)
- Last Synced: 2025-05-27T14:06:41.350Z (about 1 year ago)
- Topics: laravel, tencent-cloud
- Language: PHP
- Homepage:
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# live-video-broadcast-manager
Laravel live video broadcast manager for Tencent LVB service integration
## Installation
To install, run `composer require bryanthw1020/live-video-broadcast-manager`.
After installation, run `php artisan vendor:publish` to publish the configuration file.
After publishing configuration please make sure to add variables below into your `env` file
```
TC_LVB_SECRET_ID=
TC_LVB_SECRET_KEY=
TC_LVB_STREAM_DOMAIN=
TC_LVB_PLAYBACK_DOMAIN=
```
## Usage
Below are the available method to use.
```php
# 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");
```