ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
JSON Control Protocol
2
This document applies to RX / TX operations only; command words are case sensitive.
Network protocol UDP Port : 6004
Network protocol : TCP Port : 6006
Network protocol : Multicast [ 239.1.0.1 ]
Port : 8804
Note :
1 , The TCP protocol requires a 20 -byte header . The specific protocol is as follows :
{ Uint 32 Ver , Uint 32 msgType , Uint 32 msgCode , Uint 32 Jsonlen , Uint 32 reserved }
MsgType = 0x6300,0x6301 Jsonlen = The length of the json string The rest are 0
2. Multicast protocol:
Supports multiple node operations .
When operating audio, video, or scenes, please note: If it is a spliced screen group:
in the json message body: " wallid ":1 wallid represents the ID value of the splicing screen group.
For example, the window opening command: UDP unicast:
{"cmd":"openwindow", "id":0, "x":0,"y":0,"width":1920,"height":1080, "type":0, "protocol":0, "devid":20, "url": "192.168.1.71:9705/channel=0/stream=0", "suburl":
" 192.168.1.71:9705/channel=0/stream=1 " ,​​​ " stream ":0}
Multicast:
{"cmd":"openwindow","wallid":1,"id":0,"x":0,"y":0,"width":1920,"height":1080,"type":0, "protocol":0,"devid":20,"url":"192.168.1.71:9705/channel=0/stream=0","suburl":
" 192.168.1.71:9705/channel=0/stream=1 "," stream":0}
If it is a matrix screen group
in the json message body: " outdevidlist ":[1,2,3]
outdevidlist indicates the output device ID list to be controlled . The matrix does not use the wallid field, otherwise the output node cannot be operated.
UDP unicast:
{"cmd":"openwindow","id":0, "x":0,"y":0,"width":1920,"height":1080, "type":0, "protocol":0, "devid":20,"url":"192.168.1.71:9705/channel=0/stream=0", "suburl":
" 192.168.1.71:9705/channel=0/stream=1 "," stream ":0}
Multicast:
{"cmd":"openwindow","outdevidlist":[1,2,3],"id":0,"x":0,"y":0,"width":1920,"height":1080,"type":0,"protocol":0, "devid":20, "url": "192.168.1.71:9705/channel=0/stream=0", "suburl":"192.168.1.71:9705/channel=0/stream=1", "stream":0}
with version numbers greater than or equal to V HYPERLINK "2.0.0.7" 2.0.0.7
The UDP operation is as follows :
Applicable people : Understand the JSON protocol.
Note : The matrix does not support splicing , and the matrix device does not support overlay windows.

Enter the RTSP stream address
Main stream: rtsp :// ip :8554/ ch0 /0
Sub-stream: rtsp :// ip :8554/ ch0 /1
Preview stream: rtsp :// ip :8554/ ch0 /2
3
4
5
FunctionCommandsRespondExplanation
6
Restore factory settings command{"cmd":"factoryreset"}{" cmd ":" factoryreset "," code ":0}code : 0 means correct , other values are wrong error.
This command will automatically restart the system and set Factory settings
7
Restore user settings command{"cmd":"userreset"}{" cmd ":" userreset "," code ":0}code : 0 means correct , other values are wrong error.
This command will automatically restart the system.
This command will not modify the IP , device ID , equipment type, MAC Address
8
Restart the device make{"cmd":"reset"}{" cmd ":" reset "," code ":0}code : 0 means correct , other values are wrong Error. This command will automatically restart the system
9
Get device running time{"cmd":"getruntime"}{
"cmd": "getruntime",
"code": 0,
"starttimes": 3, "runtimelist": [{ "runtime": 348 }, {
"runtime": 3053 }, {
"runtime": 70483 }]
}
Get system running times and time starttimes ; Start times
runtime: running time of each time ( s )
10
Obtaining equipment operation and maintenance information{"cmd":"getdevops"}{
" cmd ": " getdevops ", "code": 0,
"cpu": "6.36%",
" memall ": "256.68 MB ", " memused ": "41.36 MB ", " netin ": "2.52 Mbps ",
" netout ": "52.00 Kbps "
}
cpu : cpu usage
memall : total memory BYTE
memeused : used memory netin : Network inflow
netout : Network outbound traffic
11
Get user self Definition Information{"cmd":"getuserboardinfo"}{
" cmd ": " getuserboardinfo ",
"code": 0, " name ",
: "pc-001",
" vendor ": " VD 430 " }
12
Set User Definition Information{
"cmd":"setuserboardinfo",
"name":"pc-001","vendor":"VD430"}
{" cmd ":" setuserboardinfo ", " code ":0 }name , vendor :
It is an optional field. If it exists, it will be set. If it does not exist, it will be set. This field is not set.
13
Get device id{"cmd":"getid"}{" cmd ":" getid "," code ":0," id ":90}Returns device ID id: device ID
14
Set device id{"cmd":"setid","id":0}{" cmd ":" setid "," code ":0 }cmd- indicates the command name (same) , id - device id
15
Get a key lock{"cmd":"getkeylock"}{" cmd ":" getkeylock "," code ":0," lock ":1}Get device lock command
16
Setting the key lock{"cmd":"setkeylock","lock":0}{" cmd ":" setkeylock "," code ":0 }lock:
0- Unlock button , 1- Lock the keys
17
Get network settings Preparation Information{"cmd":"getnet"}{
" cmd ": " getnet ", "code ": 0,
"ip": " 192.168.1.90 ",
" netmask ": " 255.255.255.0 ",
"gateway": " 192.168.1.1 ", " serverip ": " 0.0.0.0 "
}
Get network parameter command
18
Setting up the device network Network Information{"cmd":"setnet","ip":"192.168.1.100","netmask":"255.255.255.0","gateway":"192.168.1.1","serverip":"192.168.1.1"}{" cmd ":" setnet "," code ":0}ip : ip address
netmask : subnet mask address
gateway : Gateway
serverip : server IP
This command causes the system to reboot.
19
Set MAC mode{"cmd":"setmacmod","mac_mod":1}{" cmd ":" setmacmod "," code ":0}Set the MAC address mode , mac_mod :
1- Fixed MAC address, 0 - Random MAC address
20
Get MAC mode{"cmd":"getmacmod"}{ " cmd ": " getmacmod ", "code": 0, " mac _ mod ": 1 }Get MAC address mode , mac_mod :​​
1- Fixed MAC address, 0 - Random MAC address
21
Setting up MAC{"cmd":"setmac","mac":"E6:4C:EB:F8:AF:D9"}Set the MAC address and reboot to take effect
22
Get MAC{"cmd":"getmac"}Get MAC Address
23
Set DHCP mode{"cmd":"setdhcp","dhcp":0}{" cmd ":" setdhcp "," code ":0}
24
Get DHCP mode{"cmd":"getdhcp"}{" cmd ":" getdhcp "," code ":0," dhcp ":1}GK hardware version does not support
25
Set up audio interface mouth{"cmd":"setaudioattr","audioin":0,"audioout":0}Input and output: 0-3.5 mm , 1- HDMI
26
Get audio interface{"cmd":"getaudioattr"}Input and output: 0-3.5 mm , 1- HDMI
27
Get HDM input information{"cmd":"getviinfo"}{
" cmd ": " getviinfo ",
"code": 0,
" width ": 1920, " height ": 1080, "fps": 60,
" status ": 0
}
width , height input resolution width and height, fps input frame rate,
status HDMI connection logo :
1- HDMI has signal , 0- No signal input to HDMI.
28
Encoding restore default value{"cmd":"resetvencattr","id":0}{" cmd ":" resetvencattr "," code ": 0}Restore default encoding parameters : id : 0-2
0 The main stream will adapt to the front-end input 1 sub-stream becomes 1280x720@30, 2 preview stream : 720x567@15
29
Set encoding parameters number{"cmd":"setvencattr","id":0,"enctype":1,"width":3840,"height":2160,"fps":30,"gop":30,"bitrate":1000000}{" cmd ":" setvencattr "," code ":0}Set the encoding parameters . Note that the encoding parameters are set back
The encoding will not be able to follow the front-end adaptation id: main stream
enctype :0-H264,1-H265 widt , height encoding width and height
fps frame rate
gop is the I frame interval
bitrate: bitrate ( kps )
30
Get encoding parameters{"cmd":"getvencattr"}{
" cmd ": " getvencattr ",
"code": 0,
"vencattr": [{ "id": 0,
"enctype": 1,
"profile": 2,
"width": 3840, "height": 2160, "fps": 30,
"gop": 30,
"bitrate": 10000 }, {
"id": 1,
"enctype": 1,
"profile": 2,
"width": 1280, "height": 720, "fps": 30,
"gop": 30,
"bitrate": 4000 }, {
"id": 2,
"enctype": 0,
"profile": 1,
" width ": 720, " height ": 576, "fps": 15,
"gop": 30,
" bitrate ": 1024 }]
}
The number of streams supported by the array Id is the index
enctype : encoding type : 0-264, 1-265
31
Get cropping parameters{"cmd":"getenccrop"}{
"cmd": "getenccrop", "code": 0,
"enccrop": [{
"id": 0,
"x": 0,
"y": 0,
"width": 0, "height": 0 }, {
"id": 1,
"x": 0,
"y": 0,
"width": 0, "height": 0 }, {
"id": 2,
"x": 0,
"y": 0,
"width": 0, " height ": 0 }, {
"id": 3,
"x": 0,
"y": 0,
"width": 0, " height ": 0 }]
}
Get cropping parameter command
0- Main stream 1- Auxiliary stream 2- Preview Stream 3- Loop Out
32
Set clipping parameters number{"cmd":"setenccrop","chn":0,"x":200,"y":200,"width":960,"height":540}{" cmd ":" setenccrop "," code ":0}Set encoding cropping parameters
chn: channel number 0-3
,0 main stream
x,y, width and height cropping position and size x,y must be even numbers ,
Width should be aligned to 8 , height should be aligned to 4 , Otherwise an exception will occur.
Size is 0, cancel cropping
33
Get output parameters{
" cmd ": " getvoattr ", " msgtype ": 1,
"code": 0,
"msg": "OK.",
"chn": 0,
" backcolor ": 255, " width ": 1920,
" height ": 1080, "hz": 60
}
Set vo output resolution information
backcolor : is the background color, RGB Decimal Integer
chn : default 0
width : output width height : Output height hz: output refresh rate
34
Set output parameters number{
"cmd":"setvoattr",
"chn":0,
"width":1920,
"height":1080,"backcolor":255,"hz":60
}
{" cmd ":" setvoattr "," code ":0}Set vo output resolution information
backcolor : is the background color, RGB Decimal Integer, optional
chn : default 0
width: output width, optional height: output height, optional hz: output refresh rate, optional
35
Get output image parameters{"cmd":"getvocscattr"}{
" cmd ": " getvocscattr ",
" msgtype ": 1,
"code": 0,
"msg": "OK.",
"chn": 0,
" luma ": 45,
" contrast ": 50, "hue": 50,
" saturation ": 50 }
msgtype:1 - the message is a reply, ch: channel
luma : brightness
contrast : contrast hue: chromaticity
saturation : saturation
36
Setting up the output graph Image parameters{
"cmd":"setvocscattr",
"chn":0,
"luma":45,
"contrast":50,"hue":50,
"saturation":50}
{
"cmd":"setvocscattr",
"msgtype":1, "code":0,
"msg":"OK." }
ch: channel, default 0 luma : brightness
contrast : contrast hue: chromaticity
saturation : saturation
37
Get output from Defining Timing{"cmd":"getvouersync"}{
" cmd ": " getvouersync ",
" msgtype ": 1, "code": 0,
"msg": "OK.", "data": {
"vo_user_sync": {
"local": 1,
"hbb": 192, "hfb": 88,
"hpw": 44, "hact": 1920, "vbb": 40,
"vfb": 4,
"vpw": 4,
"vact": 1080 }
} }
hbb : blanking after line
hfb: front blanking
hpw : Pulse width
hbb : blanking after line vbb : field blanking
vfb : front field blanking
vpw : field pulse width
38
Set output from Defining Timing{
"cmd":"setvouersync",
"hbb":192,"hfb":88,
"hpw":44,"hact":1920,"vbb":40,
"vfb":4,
"vpw":4,
"vact":1080}
{
"cmd":"setvouersync",
"msgtype":1, "code":0,
"msg":"OK." }
hact , vact keep consistent with the big screen hbb: blanking after line [1-65536] hfb : front blanking [1-65536]
hpw: line pulse width [1-65536] hbb : blanking after line [1-65536] vbb : post-field blanking [1-256]
vfb : pre-field blanking [1-256]
vpw : field pulse width [1-256]
39
Set up peripherals Origin{"cmd":"setuartsel","id":0}{" cmd ":" setuartsel "," code ":0}Select the UART receiving port ,
RS2323 0, or RS485 port; id :
0 represents the index of RS 232 . 3 is the index of RS 485 .
40
{"cmd":"getuartsel"}{" cmd ":" getuartsel "," code ":0," id ":0}Get the UART receiving port
RS2323 ( 0 ) , or RS485 port ; id :
0 is the index of RS232 , 3 is the index of RS485 .
41
Get the local transparent port{"cmd":"getlocal"}{
" cmd ": " getlocal ",
"local": [{
"type": "0",
" port ": 16232 }, {
"type": 1,
" port ": 16485 }]
}
42
Set local transparent Transmission portinvalid
43
Setting up RS 232 or 485 or IR forwarding address and port{
"cmd":"setremote","remote":[{
"type":0,
"remoteip":"192.168.1.98",
"port":16232},{
"type":1,
"remoteip":"192.168.1.98",
"port":16485}]
}
{" cmd ":" setremote "," code ":0}Set RS 232 and RS 485 forwarding address and port mouth
remote : forwarding address and port type : 0- RS 232
1-RS485
44
Get RS 232 or 485 or IR forwarding address and port{"cmd":"getremote"}{
" cmd ": " getremote ",
"code": 0, "remote": [{ "type": 0,
"remoteip": "192.168.11.98",
"port": 16232 }, {
"type": 1,
"remoteip": "192.168.11.98",
"port": 16458 }, {
"type": 2,
" remoteip ": " 192.168.11.98 ",
" port ": 16457
}] }
45
Get IO information{"cmd":"getio"}{
" cmd ": " getio ",
"code": 0, "ios": [{ "id": 0,
"dir": 0, "val": 0 }, {
"id": 1, "dir": 0, "val": 0 }]
}
Get IO
id: external IO index value
dir : io direction ,
0- output , 1- input val :
io input or output value , 0 corresponds to low
1 corresponds to high
Board Changes - This command is no longer meaningful.
46
Setting up IO{
"cmd":"setio",
"ios":[{"id":0,"dir":0,"val":0},{
"id":1,"dir":0,"val":0}]
}
{" cmd ":" setio "," code ":0}Setting up IO
id: external IO index value
dir: io direction , 0- output , 1- input val :
IO input or output value , 0 corresponds to low , 1 corresponds to high When IO is set as input , the value of val is meaningless of
Board Changes - This command is no longer meaningful.
47
Setting up IO forwarding
Address and Port
Number
{
"cmd",
"setioremote","remote":[{
"id":0,
"ip":"xx.xx.xx.xx",
"port":"xxxx",
"type":0
},{
"id":1,
"ip":"xx.xx.xx.xx","port":"xxxx",
"type":0
}]}
{" cmd "," setioremote "," code ":0}Set the IO control target IP and port,
Used to link IO input to output.
id is the IO index value
48
Get IO forwarding Address and port number{"cmd":"getioremote"}{
"cmd": "getioremote",
"msgtype": 1, "code": 0,
"msg": "OK.", "remote": [{
"id": 0, "ip": "", "port": 0, "type": 0 }, {
"id": 1, "ip": "", "port": 0, "type": 0 }]
}
49
Set the IO forwarding target type{
"cmd":"setioremotetype","types":[{
"id":0,"type":0},{
"id":1,"type":0}]
}
{
" cmd ": " setioremotetype ", " code ": 0
}
Set the io linkage to the target peripheral type,
type
0- corresponding IO ,
1- Corresponding control relay
50
Get IO forwarding Target Type{"cmd":"getioremotetype"}
51
Get IR forwarding address{"cmd":"getirremote"}{
"cmd": "getirremote",
"msgtype": 1, "code": 0,
"msg": "OK.", "list": [{
"id": 0,
"ip": "192.168.11.98", "port": 16457
}]
}
id IR in ID​ ip: destination IP
prot : destination port
52
Setting up IR forwarding port{"cmd":"setirremote"}{
" cmd ": " setirremote ", "list": [{
"id": 0,
"ip": " 192.168.11.98 ", " port ": 16457
}]
}
id IR in ID​ ip: destination IP
prot : destination port
53
Calling IR{"cmd":"callirnumber","irnumber":0}Recalling stored IR commands
54
Delete IR{"cmd":"deleteirnumber","irnumber":0}Deleting stored IR commands
55
Clear IR{"cmd":"clearirnumber"}Clear all IR learned commands
56
Get relay status{"cmd":"getrelay"}{
" cmd ": " getrelay ",
"code": 0, "relays": [{ "id": 0,
" status ": 0 }]
}
id : relay ID , there may be multiple, 0 is the starting number.
status
0- disconnect, 1- Closed.
57
Setting the relay state{
"cmd":"setrelay",
"relays":[{"id":0,
"status":0}]
}
{" cmd ":" setrelay "," code ":0}id : relay ID , there may be multiple, 0 is the starting number.
status
0- disconnect, 1- Closed
58
59
60
61
62
getUart{"cmd":"getuart"}{
"cmd": "getuart", "code": 0,
"uarts": [{
"id": 0,
"baudrate": 115200, "datawidth": 8,
"stopbit": 1, "parity": 0
}, {
"id": 1,
"baudrate": 115200, "datawidth": 8,
"stopbit": 1, "parity": 0
}, {
"id": 2,
"baudrate": 115200, "datawidth": 8,
"stopbit": 1, "parity": 0
}, {
"id": 3,
" baudrate ": 115200, " datawidth ": 8,
" stopbit ": 1, " parity ": 0
}] }
Get UART properties uarts returns all uart information ,
Each piece of information represents a serial port ID :
Represents the index value of the external interface .
Uart may be RS 485 or RS485
RS2323
baudrate : baud rate , datawidth : data bits
stopbit : stop bit , support : 1, 2
parity: parity check : 0- none , 1- odd , 2- even
63
Setting up Uart{
"cmd":"setuart","uarts":[{
"id":0,
"baudrate":115200,"datawidth":0,
"stopbit":1,"parity":0
}]}
{" cmd ":" setuart "," code ":0}Set uart properties
64
Set up node pull Streaming{"cmd":"setprotocol","protocol":0}{" cmd ":" setprotocol "," code ":0}Set the default streaming protocol
0- udp multicast 1- TCP unicast
2-udp unicast ( not supported yet ) 255- Automatic Switching
65
Get the node streaming method{"cmd":"getprotocol"}{
" cmd ": " getprotocol ",
"code": 0,
" protocol ": 0 }
Get the default streaming protocol 0- udp multicast
1- TCP unicast
2-udp unicast ( not supported yet ) 255- auto switch ,
After the change, the decoder needs to reopen the window. Can take effect.
66
Select Node{"cmd":"select","flag":0}flag: 0- uncheck , 1- check
67
Bind audio node command{"cmd":"bindaudio"}{" cmd ":" bindaudio "," code ":0}Binding Audio Commands
68
Unbinding tone Frequency Node Command{"cmd":"unbindaudio"}{" cmd ":" unbindaudio "," code ":0}Unbind audio commands
69
Add matrix moment Array Command{"cmd":"newmatrix"}Add Matrix
70
Delete Matrix Command{"cmd":"deletematrix"}Delete Matrix
71
Create a splicing screen{
"cmd":"newwall",
"id":0,
"type":1,
"timing":0,"w":1920,
"h":1080,
"hz":60,
"rows":3,
"cols":3,
"ledw":5120,"ledh":2880,"row":0,
"col":1,
"multiaddr":"239.1.1.1","multiport":1100,
"allres":[{
"row":0,
"col":0,
"width":1920,"height":1080},{
"row":0,
"col":1,
"width":1280,"height":1080},{
"row":0,
"col":2,
"width":1920,"height":1080},{
"row":1,
"col":0,
"width":1920,"height":720},{
"row":1,
"col":1,
"width":1280,"height":720},{
"row":1,
"col":2,
"width":1920,"height":720},{
"row":2,
"col":0,
"width":"1920","height":"1080"},{
"row":2,
"col":1,
"width":1280,"height":1080},{
"row":2,
"col":2,
"width":1920""height":1080}]
}
{"cmd":"newwall","code":0}id:wallid type:
0->LCD screen group 1->LED screen group
timing: timing , 0- standard , 100- non-standard w: node output width
h: node output height hz: node refresh rate
rows , cols : number of rows and columns of the screen group
x,y: location information of the screen group where the node is located allres : all node information of the screen group Regulation :
The heights of nodes in the same row of a screen group must be the same. same.
The widths of nodes in the same column of a screen group must be the same. same.
72
Get big screen information{"cmd":"getwall","code":0}{" cmd ": " getwall ","code": 0,"walls": [{"id": 0,"type": 1,"timing": 0, "w": 1920,"h": 1080,"hz": 60,
"rows": 3,"cols": 3,"ledw": 5120, "ledh": 2880,
"multiaddr": "239.1.1.1", "multiport": 1100,
"allres": [{
"row": 0,
"col": 0,
"width": 1920, "height": 1080 }, {
"ip": "xx.xx.xx.xx",
"row": 0,
"col": 1,
"width": 1280, "height": 1080 }, {
"ip": "xx.xx.xx.xx",
"row": 0,
"col": 2,
"width": 1920, "height": 1080 }, {
"ip": "xx.xx.xx.xx",
"row": 1,
"col": 0,
"width": 1920, "height": 720 }, {
"ip": "xx.xx.xx.xx",
"row": 1,
"col": 1,
"width": 1280, "height": 720 }, {
"ip": "xx.xx.xx.xx",
"row": 1,
"col": 2,
"width": 1920, "height": 720 }, {
"ip": "xx.xx.xx.xx",
"row": 2,
"col": 0,
"width": 1920, "height": 1080 }, {
"ip": "xx.xx.xx.xx",
"row": 2,
"col": 1,
"width": 1280, "height": 1080 }, {
"ip": "xx.xx.xx.xx",
"row": 2,
"col": 2,
"width": 1920, "height": 1080 }]
}] }
id : screen group id
type: 0->LCD screen group 1->LED screen group timing: timing , 0- standard , 100- non-standard
w: node output width h: node output height hz: node refresh rate
rows , cols : number of rows and columns of the screen group
x,y: location information of the screen group where the node is located
multiaddr : multicast address for communication between screen group nodes
The multicast addresses of different screen groups cannot be the same.
Starting from 239.1.1.0 , you can accumulate the last Units
multiport : The multicast port is fixed at 1100 allres : all node information of the screen group Regulation :
The heights of nodes in the same row of a screen group must be the same. same
The widths of nodes in the same column of a screen group must be the same. same.
73
Delete splicing screen{"cmd":"deletewall","id":0}{" cmd ":" deletewall "," code ":0}id : screen group id
74
Open video window{
"cmd":"openwindow",
"id":0,"x":0,"y":0,
"width":1920,"height":1080,
"mcast_ip":"238.250.1.151","mcast_port":1000,
"scast_ip":"238.250.1.151","scast_port":2000,
"type":0,
"protocol":0,"devid":20,"url":
"192.168.1.71:9705/channel=0/stream=0",​​​"suburl":
"192.168.1.71:9705/channel=0/stream=1",​​​
"stream":0}
{" cmd ":" openwindow "," code ":0}id : window id
x, y, width , height : window position information type:
0- Encoding Node
1- Streaming Server
2- rtsp video stream , url must be rtsp address 3- Box forwarding
protocol: 0- Multicast ,
1-tcp,
2- udp unicast devid:
The device ID of the encoder , only available when type=0 effect
url: stream url information (required)
suburl: URL information of sub-stream (required) stream:
0- main stream , 1- substream ,
mcast_ip: main stream multicast address, only Valid when type = 3
mcast_port: main stream group port, only in Valid when type = 3
scast_ip substream multicast address, only Valid when type = 3
scast_port: sub-stream group port, only in Valid when type = 3
75
Open the audio and video window{
"cmd":"opensource",
"id":0,"x":0,"y":0,
"width":1920,"height":1080,
"mcast_ip":"238.250.1.151","mcast_port":1000,
"scast_ip":"238.250.1.151","scast_port":2000,
"type":0,
"protocol":0,"devid":20,"url":
"192.168.1.71:9705/channel=0/stream=0",​​​"suburl":
"192.168.1.71:9705/channel=0/stream=1",​​​"stream":0
}
{" cmd ":" opensource "," code ":0}Audio and video windowing,
This command will open a video. It will also open an audio source
This command will open a video. It will also open an audio source
This command will open a video. It will also open an audio source
This command will open a video. It will also open an audio source
76
Get window information{"cmd":"getwindowinfo"}{
" cmd ": " getwindowinfo ",
"code": 0, "data": { "list": [{ "id": 0,
"x": 0, "y": 0,
" width ": 1920, " height ": 1080, "level": 0,
"protocol": 0,
"url": "192.168.1.71:9705/channel=0/stream=0", "suburl":
"192.168.1.71:9705/channel=0/stream=1",
"stream": 0, "type": 0,
"devid": "fdfaefads0e1f12120fe"
}] } }
In addition to devid ,
The other fields have the same meaning as the window fields. devid : indicates the unique representation of the source.
The other fields have the same meaning as the window fields. devid : indicates the unique representation of the source.
The other fields have the same meaning as the window fields. devid : indicates the unique representation of the source.
The other fields have the same meaning as the window fields. devid : indicates the unique representation of the source.
77
Switch stream{
"cmd":"switchvideo",
"id":0,"url":
"192.168.1.71:9705/channel=0/stream=0",​​​
"stream":0}
{" cmd ":" switchvideo "," code ":0}Switch window stream, id window ID,
url is optional.
stream ( 0- main stream, 1- sub stream)
78
Change video window Mouth position{
"cmd":"changewindow",
"id":0,"x":0,"y":0,
"width":1920,"height":1080}
{"cmd":"changewindow","code":0}id: window id
x,y, width , height : Window position information
79
Video window on top{"cmd":"top","id":0}{" cmd ":" top "," code ":0}id : window id
80
Video window at the bottom{"cmd":"bottom","id":0}{" cmd ":" bottom "," code ":0}id : window id
81
Close the video window mouth{"cmd":"closewindow","id":0}{" cmd ":" closewindow "," code ":0}id : window id
82
Turn off audio and video{
"cmd":"closesource",
"id":0,"url":
"192.168.1.71:9705/channel=0/stream=0"​​​​}
{" cmd ":" closesource "," code ":0}This command will close the window and the corresponding source. ( url ) Audio
83
Clear all views Frequency Window{"cmd":"clearwindows"}{" cmd ":" clearwindows "," code ":0}Clearing the video does not turn off the sound.
84
Turn on the sound{
"cmd":"openaudio",
"id":0,"type":0,"vol":60,
"mcast_ip":"238.250.1.157",
"mcast_port":3000,"url":
"192.168.1.71:9705/channel=0/stream=0",​​​"protocol":0
}
{" cmd ":" openaudio "," code ":0}Open the source sound
type:
0- Encoding Node
1- Streaming Server
2- rtsp / rtmp video stream , the url must be rtsp / rtmp address
3- Box Streaming Source
id: window ID, optional url : source url
vol : volume Editor url default
Yes : ip :9705/ channel =0/ stream =0 Protocol : 0- tcp , 1- udp multicast (unintentional) righteous)
mcast_ip: audio multicast address, only Valid when type = 3
mcast_port: audio group port, only valid when type = 3
85
Get Sound{"cmd":"getaudioinfo"}{
" cmd ": " getaudioinfo ",
"code": 0, "data": { "audio": {
" url ": " 192.168.1.46 :9705/ channel = 0 / stream = 0 ",
"vol": 60, "status": 1, "mute": 0, "id": -1
} } }
Get audio information
code:0-OK, other errors. id :
Window ID, -1 is invalid vol : volume
status : audio switch status ,
1- Open
0- Off mute :
1- Mute ,
0 - Normal
url : source url
86
Turn off the sound{"cmd":"closeaudio","type":0,"url":"
192.168.1.71:9705/channel=0/stream=0"}​​​
{" cmd ":" closeaudio "," code ":0}Turn off the source sound
type:
0- Encoding Node
1- Streaming Server
2- rtsp video stream , url must be rtsp address Editor url default
Yes : ip :9705/ channel =0/ stream =0
87
Adjust the sound{
"cmd":"adjustaudio",
"vol":60,"url":
"192.168.1.71:9705/channel=0/stream=0"​​​​}
{" cmd ":" adjustaudio "," code ":0}Adjust the volume
0- code node ,
1- Streaming Server vol is the volume of the sound
url is the address information of the video Editor url default
Yes : ip :9705/ channel =0/ stream =0
88
Sync Box View Video window information{"cmd":"check","ids":[{"id":0},{"id":1},{"id":2}]}{" cmd ":" check "," code ":0}If ids does not exist , it means that the host computer does not exist In the window , the screen will be automatically cleared.
89
Calling scenes{"cmd":"callscene","id":1,"type":0}{" cmd ":" callscene "," code ":0}Call scene command : id The scene number type:
0- Audio and Video ,
1- Video , 2- Audio id The scene number
90
Save the scene{
"cmd":"savescene","name":"scene-01",
"id":1,"type":0}
{" cmd ":" savescene "," code ": 0 }Save scene command :
Save the box's current window as a scene.
name : scene name id The scene number type:
0- Audio and Video 1- Video
2- Audio
91
Deleting a scene{"cmd":"deletescene","id":1,"type":0}{" cmd ":" deletescene ", " code ":0}Delete scene command : id The scene number type:
0- Audio and Video , 1- Video ,
2- Audio
92
Clear All Scenes{"cmd":"clearscenes","type":0}{" cmd ":" clearscenes ", " code ":0}Clear all scenes type: 0- audio and video , 1- video Frequency , 2- Audio
93
Scene video synchronization{
"cmd":"syncscenevideo",
"sceneid":1,"id":0,
"x":0,
"y":0,
"width":1920,"height":1080,"type":0,
"protocol":0,"devid":20,"url":
"192.168.1.71:9705/channel=0/stream=0","suburl":
"192.168.1.71:9705/channel=0/stream=1","stream":0
}
{" cmd ":" syncscenevideo "," code ":0}Save the scene window ,
Before calling this interface, you should first call the delete scene command. make ,
Delete the corresponding scene and save it again. Otherwise there will be an exception.
sceneid : scene ID id : window ID
x, y, width , height : window position information
type: 0- encoding node , 1- streaming server , 2- rtsp video stream , url must be rtsp address.
protocol : 0- multicast , 1- tcp , 2- udp unicast devid:
Enter the device ID, only valid when type=0 url: stream url information (required)
suburl: URL information of sub-stream (required) stream: 0- main stream , 1- sub stream
94
Scene Audio Sync{
"cmd":"syncsceneaudio",
"sceneid":1,"type":0,
"vol":60,"url":
"192.168.1.71:9705/channel=0/stream=0","protocol":0
}
{"cmd":"syncsceneaudio","code":0}Save scene audio type: 0- encoding node , 1- Streaming media server , 2- rtsp video stream , url must It must be an rtsp address. The editor url defaults to
Yes : ip :9705/ channel =0/ stream =0
95
Get scene list{"cmd":"getscenesinfo"}{
96
Get the scene window{"cmd":"getscenewindowinfo","id":0}{
"cmd": "getscenewindowinfo",
"code": 0, "id": 0,
"data": { "list": [{ "id": 0, "x": 0,
"y": 0,
"width": 1920, "height": 1080, "level": 0,
"protocol": 0,
"url": "192.168.1.71:9705/channel=0/stream=0", "suburl":
"192.168.1.71:9705/channel=0/stream=1", "stream": 0,
"type": 0,
"devid": "fdfaefads0e1f12120fe"
}] } }
Outer id : scene ID Code : 0- OK , other errors error.
97
Switch KVM​ Bureau{"cmd":"switchlayout","id":0}Commands for switching KVM layout
id: 0- single window layout id: 1- Four-window layout id: 2- Eight-window layout id: 3- Nine-window layout
98
99
Get scene audio{"cmd":"getsceneaudioinfo","id":0}{
" cmd ": " getsceneaudioinfo ",
"code": 0, "id": 0,
"data": { "audio": { "url": "
192.168.1.71:9705/channel=0/stream=0 " ,​​​
"vol": 20, "id": 0,
"mute": 0, " status ": 1 }
} }
Id- window ID, -1 is invalid Url- source url information
Mute : 0- unmuted , 1- muted Status : 0- off Close , 1- Open
100
Set video delay Time Playback Value{
"cmd":"setstreamdelay","streamdelay":80000
}
{" cmd ":" setstreamdelay "," code ":0}Set the video playback delay value unit
[160000-0]us , unit is us