Channels
A channel is an established connection between two VT modules.
channel_start
Start channel/output.
JSON request example:
request
{
"type": "command",
"to": "WbaqzsMXqeQiwuoa", // manager id
"command": {
"command": "channel_start",
"channel": "mp://mplaylist _ML_UID:{42CE8DCF-14EC-00DA-9625-91768E3ED46E}", // channel name
"props": "mode='NDI'" // mode - output device name (only for receiver channel)
}
}C# code example:
public void Start(string device = null)
{
var message = new
{
type = "command",
to = Manager.Id,
command = new
{
command = "channel_start",
channel = Name,
props = Manager.Name == "_VT_MNG_RCV_" ? $"mode='{device ?? "NDI"}'" : "",
},
};
Action<SocketIOResponse> callback = (response) => Console.WriteLine($"<-- response: {response}");
Client.Emit("request", message, callback);
}
channel stop
Stop channel/output.
JSON request example:
request
{
"type": "command",
"to": "gBZX5HEiKGqmIMWR", // manager id
"command": {
"command": "channel_stop",
"channel": "mp://mplaylist", // channel name
"props": ""
}
}C# code example:
public void Stop()
{
var message = new
{
type = "command",
to = Manager.Id,
command = new
{
command = "channel_stop",
channel = Name,
props = "",
},
};
Action<SocketIOResponse> callback = (response) => Console.WriteLine($"<-- response: {response}");
Client.Emit("request", message, callback);
}
message, callback);
}channel_info_get
Get channel properties values (statistics).
channel_props_set
Set channel props values
channel_props_remove
Remove channel props.
channel_frame_get
Get a picture from the channel.
webguest:control:get
Get the Web Guest settings.
webguest:control:set
Set the Web Guest settings.
Last updated