7. Lightware REST API Reference
UCX series – User's Manual
78
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
7.6.7.
Change the Input Port Priority
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/AUTOSELECT/
<out>
/
<in>
/Priority·HTTP/1.1
ɯ
body:
<prio_num>
ɮ
header:
200 OK
ɮ
body:
<prio_num>
Parameters
The
<prio>
parameters means the priority number from 1 to 100, equal numbers are allowed. Inputs can
have different priorities in relation with two or more outputs. Therefore the output port number is part of the
node path of input port priorities.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/AUTOSELECT/O2/I2/Priority HTTP/1.1
ɯ
body: 51
ɮ
header:
200 OK
ɮ
body: 51
7.6.8. Query the Connected Source
Request and Response
ɯ
header:
GET·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/
<out>
/ConnectedSource·HTTP/1.1
ɮ
header: 200·OK
ɮ
body:
<in>
Example
ɯ
header:
GET http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/O2/ConnectedSource HTTP/1.1
ɮ
header:
200 OK
ɮ
body: I1
7.6.9. Query the Connected Destinations
Request and Response
ɯ
header:
GET·http://
<ip>
/api/V1/MEDIA/VIDEO/XP/
<in>
/ConnectedDestinations·HTTP/1.1
ɮ
header: 200·OK
ɮ
body: ["
<out1>
";"
<out1>
"]
Example
ɯ
header:
GET http://192.168.0.50/api/V1/MEDIA/VIDEO/XP/I3/ConnectedDestinations HTTP/1.1
ɮ
header:
200 OK
ɮ
body: ["O1","O2"]
7.6.5.
Set the Autoselect Policy
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/AUTOSELECT/
<out>
/Policy·HTTP/1.1
ɯ
body:
<autoselect_mode>
ɮ
header:
200 OK
ɮ
body:
<autoselect_mode>
Parameters
Parameter
Parameter description
Values
Value description
<autoselect_mode>
The autoselect policy
Off
The autoselect function is disabled.
Last Detect
Always the last attached input is switched to
the output automatically.
First Detect
The first active video input is selected.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/AUTOSELECT/O2/Policy HTTP/1.1
ɯ
body:
First detect
ɮ
header:
200 OK
ɮ
body:
First detect
7.6.6.
Change the Autoselect-Included Input Ports
Request and Response
ɯ
header:
POST·http://
<ip>
/api/V1/MEDIA/VIDEO/AUTOSELECT/
<out>
/
<in>
/Included·HTTP/1.1
ɯ
body:
<state>
ɮ
header:
200 OK
ɮ
body:
<state>
Parameters
Parameter
Parameter description
Values
Value description
<state>
The chosen input is ignored from the
autoselect process or not.
true
The port is included in autoselect.
false
The autoselect function ignores that port.
Example
ɯ
header:
POST http://192.168.0.50/api/V1/MEDIA/VIDEO/AUTOSELECT/O2/I1/Included HTTP/1.1
ɯ
body: false
ɮ
header:
200 OK
ɮ
body: false