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.
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.
# RTSPtoWebRTC
## 根据github上一个项目修改, 地址: https://github.com/deepch/RTSPtoWebRTC
## 先知
1. 物流项目会配置球机, 其中球机有个配置是视频流IP,该配置是视频流解码并推流的地址,也就是该服务的地址
2. 物流web会向该服务拉流, 播放球机视频直播
## 项目启动后的流程说明
1. config.go文件的loadConfig()会读取application.yml, 读取物流JAVA服务地址( JavaServer) 和本机的IP( LocalIp)
2. 发起http请求到物流java服务的/api/camera/rtcConfig接口, 读取球机的配置。注意只会读取视频流IP为本机的球机配置。http://{JavaServer}/api/camera/rtcConfig?rtcServer={LocalIp}
3. 本服务端口为8083, 不要修改! ! ! !
## 配置文件说明
```
# JAVA服务的地址
java_server: "127.0.0.1:8099"
# 本机的IP地址( JAVA服务和本服务在一台工控机上, 则两个IP相同)
local_ip: "127.0.0.1"
```
## 打包
### 安装go环境 : version 1.17.3
### 运行 build.cmd打包成exe