Files
plugin-jt1078/example/jt1078/config.yaml
2025-06-03 22:01:48 +08:00

44 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
global:
http:
listenaddr: :12079
listenaddrtls: :12080 # 用于HTTPS方式访问API的端口配置
certfile: "go-jt808.online.crt"
keyfile: "go-jt808.online.key"
tcp:
listenaddr: :12081
jt1078:
enable: true
intercom:
enable: true # 是否启用 用于双向对讲
jt1078webrtc:
port: 12020 # 对讲默认udp端口
ip: 124.221.30.46 # 外网ip 用于SDP协商修改
audioports: [12021, 12050] # 音频端口 [min,max]
onjoinurl: "https://127.0.0.1:12000/api/v1/jt808/event/join-audio" # 设备连接到音频端口的回调
onleaveurl: "https://127.0.0.1:12000/api/v1/jt808/event/leave-audio" # 设备断开了音频端口的回调
overtimesecond: 60 # 多久没有下发对讲语言的数据 就关闭这个链接
realtime: # 实时视频
addr: '0.0.0.0:12051'
onjoinurl: "https://127.0.0.1:12000/api/v1/jt808/event/real-time-join"
onleaveurl: "https://127.0.0.1:12000/api/v1/jt808/event/real-time-leave"
prefix: "live/jt1078" # 默认自定义前缀-手机号-通道 如live/jt1078-295696659617-1
playback: # 回放视频
addr: '0.0.0.0:12052'
onjoinurl: "https://127.0.0.1:12000/api/v1/play-back-join"
onleaveurl: "https://127.0.0.1:12000/api/v1/play-back-leave"
prefix: "live/jt1079" # 默认自定义前缀-手机号-通道 如live/jt1079-295696659617-1
simulations:
# jt1078文件 默认循环发送
- name: ../testdata/data.txt
addr: 127.0.0.1:12051 # 模拟实时
- name: ../testdata/audio_data.txt
addr: 127.0.0.1:12052 # 模拟回放
mp4:
enable: true