https://github.com/monibuca/plugin-edge
边缘服务器插件——使得m7s实例可作为边缘服务器
https://github.com/monibuca/plugin-edge
Last synced: about 1 year ago
JSON representation
边缘服务器插件——使得m7s实例可作为边缘服务器
- Host: GitHub
- URL: https://github.com/monibuca/plugin-edge
- Owner: Monibuca
- License: mit
- Created: 2022-08-22T01:03:34.000Z (almost 4 years ago)
- Default Branch: v4
- Last Pushed: 2023-08-17T11:34:42.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T09:37:48.001Z (about 1 year ago)
- Language: Go
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plugin-edge
边缘服务器插件——使得m7s实例可作为边缘服务器
## 插件地址
https://github.com/Monibuca/plugin-edge
## 插件引入
```go
import (
_ "m7s.live/plugin/edge/v4"
)
```
## 配置
```yaml
edge:
origin: "http://localhost:8080/hdl/"
```
origin代表源服务器拉流地址前缀,可以由如下几种格式:
- http://[host]:[port]/hdl/ 使用hdl协议拉流
- rtmp://[host]:[port]/ 使用rtmp协议拉流
- rtsp://[host]:[port]/ 使用rtsp协议拉流
## 使用
当配置了edge后,该实例即可成为边缘服务器,即当收到一个订阅者时将自动向源服务器发送拉流请求,从而实现级联的效果。