跳转到内容

工具插件合集

本页补齐此前未单独成页的工具类插件文档。

插件Feature是否有 HTTP API说明
LogRotatelogrotate日志轮转与保留策略
Debugdebug视构建而定开发调试辅助
SEIseiH.264/H.265 SEI 注入
Crontabcrontab否(主要配置驱动)定时任务调度
Mixmix否(以能力接入为主)多流混流
Cryptocrypto内容加密能力
Reportreport媒体质量指标上报
Testtest集成测试与压测接口
features = ["logrotate"]
logrotate:
path: "./logs"
max_size: 10485760
max_files: 7
level: "info"
features = ["crontab"]
crontab:
jobs:
- name: "daily-record"
cron: "0 8 * * *"
action: "record_start"
stream: "live/camera01"
duration: 3600

前缀:/report/

POST /report/metrics
Content-Type: application/json

请求体核心字段:

字段类型必填说明
user_idstring用户 ID
room_idstring房间 ID
sdk_versionstringSDK 版本
report_timeint64上报时间戳
metricsarray指标集合
GET /report/rooms
GET /report/metrics/{room_id}
GET /report/metrics/{room_id}/{user_id}
GET /report/history/{room_id}

前缀:/test/

GET /test/
GET /test/integration
GET /test/stress
GET /test/cases
GET /test/api/cases
GET /test/api/stress/count
POST /test/api/cases/execute
POST /test/api/stress/push/{protocol}/{count}
POST /test/api/stress/pull/{protocol}/{count}
POST /test/api/stress/stop/push
POST /test/api/stress/stop/pull
POST /test/stop

执行用例:

{ "names": ["basic_rtmp_to_flv", "webrtc_publish"] }

推流压测:

{
"remoteURL": "rtmp://localhost/live/stress/%d",
"streamPath": "live/source"
}

拉流压测:

{
"remoteURL": "rtmp://localhost/live/source",
"testMode": 0
}

联系我们

微信公众号:不卡科技 微信公众号二维码
腾讯频道:流媒体技术 腾讯频道二维码
QQ 频道:p0qq0crz08 QQ 频道二维码
QQ 群:751639168 QQ 群二维码