jaryhe 67001cd674 new | 6 mesiacov pred | |
---|---|---|
.. | ||
.gitignore | 6 mesiacov pred | |
LICENSE | 6 mesiacov pred | |
README.en.md | 6 mesiacov pred | |
README.md | 6 mesiacov pred | |
go.mod | 6 mesiacov pred | |
go.sum | 6 mesiacov pred | |
main.go | 6 mesiacov pred | |
pull.go | 6 mesiacov pred |
简体中文 | English
The main function of the HDL plugin is to provide access to the HTTP-FLV protocol.
HTTP-FLV protocol (HDL: Http Dynamic Live) is a dynamic streaming media live broadcast protocol, which implements the function of live broadcast of FLV format video on the ordinary HTTP protocol. The meaning of its name can be mainly divided into three parts:
HTTP (HyperText Transfer Protocol): Hypertext Transfer Protocol, a protocol for information transfer on the World Wide Web. In the HTTP-FLV protocol, HTTP serves as the basic protocol to provide the basic structure of data transmission.
FLV (Flash Video): A streaming media video format, initially designed by Adobe, mainly used for online playback of short videos or live broadcasts.
HDL: Http Dynamic Live, is the abbreviation of HTTP-FLV protocol alias, which can be understood as "HTTP-based dynamic live broadcast protocol", emphasizing that it is based on the original HTTP protocol, through dynamic technology to achieve the function of video live broadcast.
https://github.com/Monibuca/plugin-hdl
import (
_ "m7s.live/plugin/hdl/v4"
)
hdl:
http: # Refer to global configuration for format
publish: # Refer to global configuration for format
subscribe: # Refer to global configuration for format
pull: # Format: https://m7s.live/guide/config.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE
If the live/test stream already exists in M7S, then HTTP-FLV protocol can be used for playback. If the listening port is not configured, then the global HTTP port is used (default 8080).
ffplay http://localhost:8080/hdl/live/test.flv
The available API is:
/hdl/api/pull?target=[HTTP-FLV address]&streamPath=[stream identifier]&save=[0|1|2]
HTTP-FLV address needs to be urlencoded to prevent special characters from affecting parsing
/hdl/api/list