# plugin-hdl **Repository Path**: monibuca/plugin-hdl ## Basic Information - **Project Name**: plugin-hdl - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: v3 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-12 - **Last Updated**: 2021-07-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HDL插件 HDL插件主要功能是提供HTTP-FLV协议的访问 ## 插件地址 github.com/Monibuca/plugin-hdl ## 插件引入 ```go import ( _ "github.com/Monibuca/plugin-hdl" ) ``` ## 默认插件配置 ```toml [HDL] ListenAddr = ":2020" #默认为空 ListenAddrTLS = ":2021" #默认为空 CertFile = "file.cert" #默认为空 KeyFile = "file.key" #默认为空 ``` - `ListenAddr`是监听的地址,如果配置为空字符串,则是复用Gateway插件监听的公共端口 - `ListenAddrTLS` 公共https监听端口,默认为空,则不监听 - `CertFile` https用的证书,默认为空 - `KeyFile` https用的证书的key,默认为空 ## 插件功能 ### 从m7s拉取http-flv协议流 如果m7s中已经存在live/test流的话就可以用http-flv协议进行播放 如果监听端口不配置则公用Gateway的端口(默认8080) ```bash ffplay -i http://localhost:8080/hdl/live/test.flv ``` 如果配置了端口监听,则可以省略hdl路由,例如 ```bash ffplay -i http://localhost:2020/live/test.flv ```