I'm attempting to write a macro for a Room Kit Pro to enable a split screen mode. Everything loads without error but the displays will only show the last ConnectorId listed full screen. Not sure how I've messed this up. Please help me figure out where I've gone wrong. Code below. Screenshot attached.
import xapi from 'xapi';
function guiEvent(event) {
if (event.WidgetId === 'Content/Whiteboard') {
xapi.Command.Video.Input.SetMainVideoSource(
{ ConnectorId: 3, ConnectorId: 2, Layout: "Equal"});
}
if (event.WidgetId === 'Standard') {
xapi.Command.Video.Input.SetMainVideoSource(
{ConnectorId: 1, Layout: "Equal"});
}
if (event.WidgetId === 'Audience/Whiteboard') {
xapi.Command.Video.Input.SetMainVideoSource(
{ ConnectorId: 2, ConnectorId: 1, Layout: "Equal"});
}
if (event.WidgetId === 'Content/Audience/Whiteboard') {
xapi.Command.Video.Input.SetMainVideoSource(
{ ConnectorId: 1, ConnectorId: 3, ConnectorId: 2, Layout: "Equal"});
}
}
xapi.Event.UserInterface.Extensions.Widget.Action.on(guiEvent);