-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathconfig.json
More file actions
83 lines (70 loc) · 1.7 KB
/
config.json
File metadata and controls
83 lines (70 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"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",
"on_snapshot": "http://localhost:9000/api/v1/hook/on_snapshot"
},
"log": {
"file_logging": false,
"level": -1,
"name": "./logs/lkm.log",
"max_size": 10,
"max_backup": 100,
"max_age": 7,
"compress": false
}
}