-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson.c
executable file
·61 lines (38 loc) · 1.78 KB
/
json.c
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
{
"ServiceType":"viedoPlayer",
"Data_Type": "Realtime" / "Recording",
"URL":"rtsp://120.27.188.84:8888/realtime/$carleapmotorCLOUDE20160727inform/1/realtime.sdp",
"VideoType":"SD" / "HD",
"Operation":"Stop" / "Begin"
}
{"ServiceType":"viedoPlayer","Data_Type": "Realtime","URL":"rtsp://120.27.188.84:8888/realtime/$carleapmotorCLOUDE20160727inform/1/realtime.sdp","VideoType":"SD","Operation":"Stop"}
EasyDarwin与车机MQTT的实时视频通讯JSON发送
{
"ServiceType":"viedoPlayer", //发送视频信息 need when stop
"Data_Type":" Realtime", // need when stop
"URL":"rtsp://ip:Port/realtime/$clientid/realtime.sdp", // need when stop
"VideoType":"SD", //HD高清 SD标清
"Operation":" Begin" / "Stop"
}
EasyDarwin与车机MQTT的录像通讯JSON发送
{
"ServiceType":"viedoPlayer", //发送视频信息
"Data_Type":" Recording",
"URL":"rtsp://ip:Port/record/$clientid/20140820163420.sdp",
"VideoType":"SD", //HD高清 SD标清
"CurrentTime":"0", //默认单位为秒,录像拖动时需要
"Operation":" Begin"
}
发送JSON的Topic:" /clientID/videoinfoAsk"
/1234/videoinfoAsk
/carleapmotorCLOUDE20160727inform/videoinfoAsk
realtime url:
rtsp://120.27.188.84:8888/realtime/$1234/1/realtime.sdp
rtsp://120.27.188.84:8888/realtime/$carleapmotorCLOUDE20160727inform/1/realtime.sdp
record
rtsp://120.27.188.84:8888/record/$carleapmotorCLOUDE20160727inform/1/2016-08-30_113613.sdp
test:
rtsp://120.27.188.84:8888/realtime/$1234/1/realtime.sdp
rtsp://192.168.61.128:8888/realtime/$carleapmotorCLOUDE20160727inform/1/realtime.sdp
play record in EasyDarwin:
rtsp://120.27.188.84:8888/testAfterHint.mp4