Files
lkm/config.json

82 lines
1.6 KiB
JSON

{
"gop_cache": true,
"probe_timeout": 2000,
"mw_latency": 350,
"listen_ip" : "0.0.0.0",
"public_ip": "192.168.2.148",
"idle_timeout": 60,
"receive_timeout":60,
"debug": false,
"media_port": [50000,60000],
"http": {
"port": 8080
},
"rtmp": {
"enable": true,
"port": 1935
},
"hls": {
"enable": true,
"segment_duration": 2,
"playlist_length": 10,
"dir": "../tmp"
},
"rtsp": {
"enable": true,
"port": 554,
"password": "123456"
},
"webrtc": {
"enable": true,
"port": 8000,
"transport": "UDP"
},
"gb28181": {
"enable": true
},
"jt1078": {
"enable": true,
"port": 1078,
"?port_2019": "2019版本协议sim卡号20位, 单独启动一个收流端口",
"port_2019": 1079
},
"record": {
"enable": false,
"format": "flv",
"dir": "../record"
},
"hooks": {
"enable": false,
"timeout": 10,
"on_started": "http://localhost:9000/api/v1/hook/on_started",
"on_publish": "http://localhost:9000/api/v1/hook/on_publish",
"on_publish_done": "http://localhost:9000/api/v1/hook/on_publish_done",
"on_play" : "http://localhost:9000/api/v1/hook/on_play",
"on_play_done" : "http://localhost:9000/api/v1/hook/on_play_done",
"on_record": "http://localhost:9000/api/v1/hook/on_record",
"on_idle_timeout": "http://localhost:9000/api/v1/hook/on_idle_timeout",
"on_receive_timeout": "http://localhost:9000/api/v1/hook/on_receive_timeout"
},
"log": {
"file_logging": false,
"level": -1,
"name": "./logs/lkm.log",
"max_size": 10,
"max_backup": 100,
"max_age": 7,
"compress": false
}
}