![Lightware UCX-2x1-HC30 Скачать руководство пользователя страница 77](http://html1.mh-extra.com/html/lightware/ucx-2x1-hc30/ucx-2x1-hc30_user-manual_1915482077.webp)
7. Lightware REST API Reference
UCX series – User's Manual
77
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
7.6.
Video Port Settings - General
7.6.1.
Switch Video Input
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/switch·HTTP/1.1
ɯ
body:
<in>
:
<out>
ɮ
header:
200 OK
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/switch HTTP/1.1
ɯ
body: I5:O1
ɮ
header:
200 OK
INFO:
When using the '0' value as an input, the input will be disconnected and no signal will appear on the
output.
ATTENTION!
Video crosspoint has a limitation: I1 and I5 ports are not available at the same time, only one
of them can be selected to any output.
When one of the outputs is switched to I1 or I5 the other output can
not be switched to I1 or I5. In this case the switch command returns error message.
Example
ɯ
header:
GET http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/O1/ConnectedSource HTTP/1.1
ɮ
body: I5
ɯ
header:
GET http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/O2/ConnectedSource HTTP/1.1
ɮ
body: I5
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/switch HTTP/1.1
ɯ
body: I1:O1
ɮ
header:
405 Method Not Allowed
7.6.2.
Switch an Input to All Outputs
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/switchAll·HTTP/1.1
ɯ
body:
<in>
ɮ
header:
200 OK
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/switchAll HTTP/1.1
ɯ
body: I1
ɮ
header:
200 OK
7.6.3.
Lock the Video Port
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/
<port>
/Lock·HTTP/1.1
ɯ
body:
<locked_state>
ɮ
header:
200 OK
ɮ
body:
<locked_state>
Parameters
Parameter
Parameter description
Values
Value description
<locked_state>
Locked state
true
The port is locked
false
The port is unlocked
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/I2/Lock HTTP/1.1
ɯ
body: false
ɮ
header:
200 OK
ɮ
body: false
7.6.4.
Mute the Video Port
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/
<port>
/Mute·HTTP/1.1
ɯ
body:
<muted_state>
ɮ
header:
200 OK
ɮ
body:
<muted_state>
Parameters
Parameter
Parameter description
Values
Value description
<muted_state>
Muted state
true
The port is locked.
false
The port is unlocked.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/I2/Mute HTTP/1.1
ɯ
body: false
ɮ
header:
200 OK
ɮ
body: false