You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.2 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# zlm_webassist
[![](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/1002victor/zlm_webassist/blob/main/LICENSE)
![](https://img.shields.io/badge/language-html-red.svg)
![](https://img.shields.io/badge/language-vue-green.svg)
![](https://img.shields.io/badge/language-js-black.svg)
![](https://img.shields.io/badge/language-css-yelllow.svg)
[![](https://img.shields.io/badge/platform-linux%20|%20macos%20|%20windows-blue.svg)](https://github.com/ZLMediaKit/ZLMediaKit)
[![](https://img.shields.io/badge/PRs-welcome-yellow.svg)](https://github.com/1002victor/zlm_webassist/pulls)
简体中文 | [English](./README_EN.md)
## 项目介绍
本项目是[ZLMediakit](https://github.com/ZLMediaKit/ZLMediaKit)的 web 管理助手,更改参数添加代理踢客户端这三个常用功能作为ZLM的调试助手非常方便方便日常调试管理使用。
仅有前端代码,无后端。 而且代码超级简单,路过的前端大佬见笑了。
不建议部署在生产环境对外提供服务使用!!!
不建议部署在生产环境对外提供服务使用!!!
不建议部署在生产环境对外提供服务使用!!!
## 功能清单:
目前实现的功能:
- [x] 统计线程情况
- [x] 获取流列表
- [x] 关闭流
- [x] 获取 Session 列表
- [x] 关闭 Session
- [x] webrt 测试(在 [ZLMediakit](https://github.com/ZLMediaKit/ZLMediaKit/blob/master/www/webrtc/index.html) 的基础上仅做了页面优化,以及基于 vue2 的代码重构)
- [x] 修改 server 配置
- [x] 添加推流代理
- [x] 添加拉流代理
- [x] 重启服务器
待实现功能:
- [ ] 关闭代理(目前可用关闭流代替)
- [ ] 开启、关闭录制
- [ ] 查看录制视频
- [ ] 点播播放
- [ ] 直播播放
## 如何使用
直接放在zlm的www根目录下即可。
访问的时候务必在url中加上secret参数否则就是个花架子看不到数据。
如果打开网页是乱码修改config.ini配置文件中http的charSet为utf-8然后再重启MediaServer
## 附录
### 目前用到的zlm的接口
- [ ] "/index/api/addFFmpegSource",
- [x] "/index/api/addStreamProxy",
- [x] "/index/api/close_stream",
- [x] "/index/api/close_streams",
- [ ] "/index/api/delFFmpegSource",
- [ ] "/index/api/delStreamProxy",
- [x] "/index/api/getAllSession",
- [ ] "/index/api/getApiList",
- [x] "/index/api/getMediaList",
- [x] "/index/api/getServerConfig",
- [x] "/index/api/getThreadsLoad",
- [x] "/index/api/getWorkThreadsLoad",
- [x] "/index/api/kick_session",
- [x] "/index/api/kick_sessions",
- [x] "/index/api/restartServer",
- [x] "/index/api/setServerConfig",
- [ ] "/index/api/isMediaOnline",
- [ ] "/index/api/getMediaInfo",
- [ ] "/index/api/getRtpInfo",
- [ ] "/index/api/getMp4RecordFile",
- [ ] "/index/api/startRecord",
- [ ] "/index/api/stopRecord",
- [ ] "/index/api/getRecordStatus",
- [ ] "/index/api/getSnap",
- [ ] "/index/api/openRtpServer",
- [ ] "/index/api/closeRtpServer",
- [ ] "/index/api/listRtpServer",
- [ ] "/index/api/startSendRtp",
- [ ] "/index/api/stopSendRtp",
- [x] "/index/api/getStatistic",
- [x] "/index/api/addStreamPusherProxy",
- [ ] "/index/api/delStreamPusherProxy",
- [x] "/index/api/version",
- [ ] "/index/api/getMediaPlayerList"