Managers
This article contains manager commands reference
A manager is an instance of VT_Publisher.exe or VT_Receiver.exe running at a given location. And VT_Server.exe instance acts both as publisher and receiver.
To keep an actual list of managers you need to handle the following events:
on_joinon_leaveon_props_set
Below is the list of commands available for manager instances.
channels_enum
Get the list of channels sorted by channel type:
all - get all channels (Publisher: SOURCES panel, Receiver: selector for STREAM TO)
ready - get channels that are ready to publish (Publisher: SOURCES panel)
output - get channels that have at least one connected client (Publisher: OUT panel, Receiver: IN panel) )
JSON request example:
request
{
"type": "command",
"to": "gBZX5HEiKGqmIMWR",// manager id (see JSON callback for JSON join in Connection to signaling)
"command": {
"command": "channels_enum",
"type": "all"
}
}JSON callback example:
callback
[
{
"channels": [
{
"channelState": 0,
"channelType": 5,
"location": ""US, Chicago"",
"name": "Screen:ASUS TUF Gaming VG279QL1A"
},
{
"channelState": 0,
"channelType": 2,
"location": "US, Chicago",
"name": "B525 HD Webcam"
},
{
"channelId": "mp://mplaylist _ML_UID:{42CE8DCF-14EC-00DA-9625-91768E3ED46E}",
"channelPeerID": "QYQyE97bDbAhRfmO",
"channelState": 3,
"channelStatus": "(Web20:0) Ready for connect VT20 GW:3 W:0 C:0 ",
"channelType": 3,
"location": "US, Boston",
"name": "mp://mplaylist",
"previewURL": "[<https://vt08.medialooks.com:8080/CDqjLuf4CFw1keW+>]"
{
"channelState": 0,
"channelType": 6,
"location": "US, Chicago",
"name": "Microphone (B525 HD Webcam)"
},
{
"channelState": 0,
"channelType": 6,
"location": "US, Chicago",
"name": "PC Sounds (Loopback)"
}
],
"location": "US, Chicago",
"objectName": "VT_Publisher [hpH4R3SLtsNp5NCT]",
"type": "channels"
},
null
]Channel types reference:
0
None
1
NDI
2
SDI
3
MP_Link
4
URL
5
Screen Capture
6
Audio
7
Mixer
Channel states reference:
0
Closed
1
Preview
2
Output
3
Preview_Output
4
Mixstream
5
Preview_mix
6
Output_Mix
7
Preview_Output_Mix
16
Disconnected
devices_enum
Get the list of available output devices. This command suits only the Receiver manager since Publisher doesn’t have any output besides streaming to other modules.
mng_props_get
Get manager properties. The properties could be specified via "props_name", "node::props_name" or "node" (for node attributes list returned). You can read the properties list here.
mng_props_set
Set manager properties.
mng_props_remove
Remove manager properties.
Last updated