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

cisco codec pro change monitor roles / macros

b_ferguson
Level 1
Level 1

cisco codec pro, have a screen in the front of the room and a screen in the back.  Is there a way with a ui extension / macro to change the source so if the user wants to change the source, they can?  i've only seen a way to change it within the codec itself, currently monitor 1 is First and monitor 2 is Second.  This would not be a big deal if the monitors were next to each other but of course in this situation, they aren't.  Appears this could be doable with a combo of UI Extension and Macro.  I found a macro on a devnet github, if anyone has performed something similar that be great to hear some responses regarding this. 

2 Replies 2

Thom Brooks
Level 1
Level 1

Did you ever get a solution to this? It seems like we want both monitors to have the same role, because often if they are presenting content, they want it on both the front and back screens. Mainly they then want to change the layout to decide whether they want to see the far end participants or not.

Wayne DeNardi
VIP Alumni
VIP Alumni

Very simple to do with the UI Extensions and macros.   

If you create UI buttons with IDs of "Monitors_1", "Monitors_2" and "Monitors_Same", then the following macros would work to switch the behaviours of the displays from "First and Second" to "Second and First" or "Second and Second" to control what appears on each - tweak as required for your specific needs.

import xapi from 'xapi';

xapi.event.on('UserInterface Extensions Panel Clicked', (event) => { 
 if (event.PanelId === 'Monitors_1') {
   xapi.Config.Video.Output.Connector[1].MonitorRole.set('First');
   xapi.Config.Video.Output.Connector[2].MonitorRole.set('Second');
 } 
});

xapi.event.on('UserInterface Extensions Panel Clicked', (event) => { 
 if (event.PanelId === 'Monitors_2') {
   xapi.Config.Video.Output.Connector[1].MonitorRole.set('Second');
   xapi.Config.Video.Output.Connector[2].MonitorRole.set('First');
 } 
});

xapi.event.on('UserInterface Extensions Panel Clicked', (event) => { 
 if (event.PanelId === 'Monitors_Same') {
   xapi.Config.Video.Output.Connector[1].MonitorRole.set('Second');
   xapi.Config.Video.Output.Connector[2].MonitorRole.set('Second');
 } 
});

 

Wayne

Please remember to mark helpful responses and to set your question as answered if appropriate.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: