https://github.com/monibuca/plugin-preview
https://github.com/monibuca/plugin-preview
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/monibuca/plugin-preview
- Owner: Monibuca
- License: mit
- Created: 2022-06-02T03:14:19.000Z (almost 4 years ago)
- Default Branch: v4
- Last Pushed: 2025-01-09T14:25:27.000Z (over 1 year ago)
- Last Synced: 2025-06-13T07:04:34.958Z (12 months ago)
- Language: HTML
- Size: 11.9 MB
- Stars: 1
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 预览插件
用于预览本地视频播放器插件
## 插件地址
https://github.com/Monibuca/plugin-preview
## 插件引入
```go
import (
_ "m7s.live/plugin/preview/v4"
)
```
## 配置
无
## API
### GET `/preview`
视频流预览页面
### GET `/preview/[streamPath]?type=[hdl|hls|ws|wt|rtc]`
预览指定的视频流,比如 `preview/live/test?type=ws`, 使用 ws 方式预览 live/test 直播流
### GET `/preview/[filepath]`
(开发中)预览制定的录像文件,比如 `preview/record/flv/xxx.flv`
## 使用WebTransport注意事项
- 本地测试需要本地启动https服务,并配置有效的证书
- 由于证书与域名绑定,所以需要host里面配置对应的域名 例如:`127.0.0.1 monibuca.com`