cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
453
Views
0
Helpful
1
Replies
Anthony T
Contributor

CE9.9 Macros for Source Compositing

I'm trying to composite 2 different camera inputs, and have the configuration remain 'sticky'....stays that way no matter what else you do on the codec.

 

The command 'xCommand Video Input SetMainVideoSource ConnectorId:1 ConnectorId:2 Layout:Equal' in the API seems to do what is required, but it is not 'sticky'. If someone wants to use the PTZ controls for one of the cameras, for example, it goes back to a single camera view.

 

So to get  around that, I was trying to create a command button on the Touch 10 that would re-initiate the composite view.

The same command just doesn't seem to work when sent from a macro. It has to be reformatted for the requirements of a macro, and that seems to get me to this:

 

xapi.command('Video Input SetMainVideoSource', { ConnectorId: '1', ConnectorId: '2', Layout: 'Equal'} );

 

But this doesn't work.  Just sets main video to Connector 1, and completely ignores Connector 2.  If I reverse the order of the connectors in the command, then it does the opposite.  It's like the macro processor doesn't understand the command the same way that the API does.

 

There must be a way around this, to get source compositing to work permanently.  Can anyone around here lend a hand? I'm sure this can't be very complicated....just me. I'm trying to format the command correctly so that it will be accepted as a macro by the codec.  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Anthony T
Contributor

I was able to find out the syntax of the command on my own:

 

xapi.command('Video Input SetMainVideoSource', { ConnectorId: [1, 2], Layout: 'Equal' } );

View solution in original post

1 REPLY 1
Anthony T
Contributor

I was able to find out the syntax of the command on my own:

 

xapi.command('Video Input SetMainVideoSource', { ConnectorId: [1, 2], Layout: 'Equal' } );

View solution in original post

Content for Community-Ad