Channels

A channel is an established connection between two VT modules.

channel_start

Start channel/output.

chevron-rightJSON request example:hashtag
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)
}
}
chevron-rightC# code example:hashtag
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.

chevron-rightJSON request example:hashtag
request
{
"type": "command",
"to": "gBZX5HEiKGqmIMWR",        // manager id
"command": {
"command": "channel_stop",
"channel": "mp://mplaylist",   // channel name
"props": ""
}
}
chevron-rightC# code example:hashtag
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).

chevron-rightJSON request example:hashtag
chevron-rightJSON callback example:hashtag
chevron-rightC# code example:hashtag

channel_props_set

Set channel props values

chevron-rightJSON message example:hashtag
chevron-rightC# code example:hashtag

channel_props_remove

Remove channel props.

chevron-rightJSON message example:hashtag
chevron-rightC# code example:hashtag

channel_frame_get

Get a picture from the channel.

chevron-rightJSON request example:hashtag
chevron-rightJSON callback example:hashtag
chevron-rightC# code example:hashtag

webguest:control:get

Get the Web Guest settings.

chevron-rightJSON request example:hashtag
chevron-rightJSON callback example:hashtag
chevron-rightC# code example:hashtag

webguest:control:set

Set the Web Guest settings.

chevron-rightJSON message examplehashtag
chevron-rightC# code example:hashtag

Last updated