cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
413
Views
0
Helpful
0
Replies

Matrix Macro fail

Aaron Kennison
Level 1
Level 1

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(
    { ConnectorId3ConnectorId2Layout"Equal"});
  }

  if (event.WidgetId === 'Standard') {
    xapi.Command.Video.Input.SetMainVideoSource(
    {ConnectorId1Layout"Equal"});
  }

  if (event.WidgetId === 'Audience/Whiteboard') {
    xapi.Command.Video.Input.SetMainVideoSource(
    { ConnectorId2ConnectorId1Layout"Equal"});
  }

  
  if (event.WidgetId === 'Content/Audience/Whiteboard') {
    xapi.Command.Video.Input.SetMainVideoSource(
    { ConnectorId1ConnectorId3ConnectorId2Layout"Equal"});
  }
}

xapi.Event.UserInterface.Extensions.Widget.Action.on(guiEvent);
0 Replies 0