ZLMediaKit rust api
-
依赖
-
编译好并且 install
ZLMediaKit
之后,设置环境变量ZLM_DIR
,该路径包含 ZLMediaKit 的include
和lib
以及bin
文件夹,并将bin
设置到PATH
环境变量中如果不设置
ZLM_DIR
环境变量,rszlm-sys 会拉取ZLMediaKit
git 代码进行编译 -
编译
cargo build
-
dynamic
和static
编译-
dynamic
(默认):rszlm = { version = "*" }
-
static
:rszlm = { version = "*", features = ["static"] }
-
-
webrtc
rszlm = { version = "*", features = ["webrtc"] }