本文摘自网络,作者,侵删。
中文文档
LAL is an audio/video live streaming broadcast server written in Go. It's sort of like nginx-rtmp-module, but easier to use and with more features, e.g RTMP, RTSP(RTP/RTCP), HLS, HTTP[S]-FLV/HTTP-TS, WebSocket-FLV/TS, H264/H265/AAC, relay, cluster, record, HTTP API/Notify, GOP cache.
And more than a server, act as package and client
Install
There are 2 ways of installing lal.
Prebuilt binaries
Prebuilt binaries for Linux, macOS(Darwin), Windows are available in the lal github releases page. Naturally, using the latest release binary is the recommended way. The naming format is lal_, e.g. lal_v0.20.0_linux.zip
LAL could also be built from the source wherever the Go compiler toolchain can run, e.g. for other architectures including arm32 and mipsle which have been tested by the community.
Building from source
First, make sure that Go version >= 1.13
For Linux/macOS user:
$git clone https://github.com/q191201771/lal.git $cd lal $make build
Then all binaries go into the ./bin/ directory. That's it.
For an experienced gopher(and Windows user), the only thing you should be concern is that the main function is under the ./app/lalserver directory. So you can also:
$git clone https://github.com/q191201771/lal.git $cd lal/app/lalserver $go build
Or using whatever IDEs you'd like.
相关阅读 >>
Golang "github.com/pkg/errors" 包使用的正确姿势
详解Golang中方法的receiver为指针和不为指针的区别
更多相关阅读请进入《Go》频道 >>
Go语言101
一个与时俱进的Go编程知识库。