
Example 1 - Return the playback properties of all player devices within a preset named
"preset1"
.
presetgetplayerstatus
preset1
]
Returns:
[{"playstate":"PLAY","position_timecode":"01:23:22:00",
"filename":"File1_20001.0.0_r0_
s0.rec","directory":"/dir1",
"duration_timecode":"02:23:22:00","duration":8602,
"position":5002,"speed":2.3,"device_id":"100_Device1"},
{"playstate":"PLAY","position_timecode"
:"01:23:22:00",
"filename":"File2_20002.0.0_r0_s0.rec","directory"
:"/dir2","duration_timecode":"02:23:22:00","duration":8602,
"position":5002,"speed":2.3,"device_id":"100_Device2"},
{"ts_playstate":"PLAY","ts_duration_timecode":"02:23:22:00",
"ts_speed":2.3,"ts_
position":5002,"ts_position_
timecode":"01:23:22:00","device_id":"preset","ts_
duration":8602}]
Example 2 - Return the playback properties of device ID
10002
within a preset named
"preset1"
.
presetgetplayerstatus
preset1
device=
10002
]
Returns:
[{"playstate":"PLAY","position_timecode":"01:23:22:
00","filename":"File2_20002.0.0_r0_
s0.rec","directory":"/
dir2","duration_timecode":"02:23:22:00","duration":"8602",
"position":"5002","speed":"2.3","device_id":"100_Device2"}]
presetgetrecorderstatus (VNM Recorder and VNR 100 only)
The
presetgetrecorderstatus
command returns a list of recording status properties
associated with a specified preset.
Command line structure
presetgetrecorderstatus
name
device
Available parameters and arguments for this command are:
Parameter
Argument
Description
name
string
Example:
preset1
The name of the stored preset.
device
Device
serial
number
Example:
50001
The ID of a specific recorder device within
the preset. This optional parameter can be
used for filtering or search.
Returned attributes for this command are:
Attribute
Value
Description
recordstate
enable
disable
Recording is currently in progress.
Recording is stopped.
duration
0-99999
Example:
5002
The current length (or total length if the
recording has completed) of the recorded file
in seconds.
Mbytes
0-99999
Example:
5002
The current size (or total size if the
recording has finished) of the recorded file in
megabytes.
filename
String
Example:
file1_20001.0.0_r0_
s0.rec
Name of the recording file.
directory
String
Example:
/dir1
Name of the recording directory.
device_id
serial
number:
channel
Example:
50001:2
The device ID and channel number of the
recorder device.
VNM EC 200 • Reference Information
219
Содержание VNM EC 200
Страница 6: ......