Crates.io | rszlm |
lib.rs | rszlm |
version | 0.1.10 |
source | src |
created_at | 2024-06-23 06:34:37.640468 |
updated_at | 2024-08-06 13:13:31.501194 |
description | ZLMediaKit rust api |
homepage | |
repository | https://github.com/BenLocal/rszlm |
max_upload_size | |
id | 1280996 |
size | 106,163 |
ZLMediaKit rust api
依赖
编译好并且 installZLMediaKit
之后,设置环境变量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"] }
example 中使用了ffmpeg-next
,运行前请参照dependencies安装相关环境