1 Star 0 Fork 115

baiyfcu / NodeJS版本基于GB28181的HTTP网关

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NodeJS版本基于GB28181的HTTP网关


作者:

一、介绍

NodeJS版本基于GB28181的HTTP网关,实现浏览器播放GB28181设备视频功能。

二、基本功能

这是一个GB28181的信息服务器Server,可以接收设备注册、给浏览器提供接口用来请求视频。 视频服务端使用 ZLMediaKit

三、开发资料(大致是我学习GB28181的过程)

四、开发环境等

nodejs安装依赖

npm install

使用时把sip_config.js.template 改为 sip_config.js , 并按需要修改里面的参数。

五、restful接口说明

/api/v1/device/list

GET请求 获取设备列表

/api/v1/device/invite

GET请求 请求视频

  • account 请求目标端口号

六、更新日志

  • 0.0.1 设备注册、请求目录
  • 0.0.2 加restful接口,实现请求设备列表功能
  • 0.0.3 实现invite功能
  • 0.0.4 增加配置,允许匿名注册,去掉一些不需要文件,增加离线检测

七、tips

ffmpeg命令 转发rtp到rtmp

ffmpeg -protocol_whitelist "file,http,https,rtp,udp,tcp,tls" -i test1.sdp -vcodec flv -acodec aac -ab 8000 -f flv rtmp://rtmp 服务器地址:9092/hls/t_1_1
MIT License Copyright (c) 2020 xundh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

NodeJS版本基于GB28181的HTTP网关,实现浏览器播放GB28181设备视频功能。 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/baiyfcu/GB28181_Node_Http.git
git@gitee.com:baiyfcu/GB28181_Node_Http.git
baiyfcu
GB28181_Node_Http
NodeJS版本基于GB28181的HTTP网关
master

搜索帮助