Skip to content

Commit

Permalink
Fixed remote cam in usbmodedual
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharie Gignac authored and Zacharie Gignac committed Jan 13, 2022
1 parent 92fac07 commit b8a1d69
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions JS/USBModeDual.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const USBHDMICONNECTOR = RoomConfig.config.video.usbOutputId;
const MONITORHDMICONNECTOR = RoomConfig.config.video.remoteMonitorOutputId;
const PROJECTORHDMICONNECTOR = RoomConfig.config.video.projectorOutputId;
const CAMCONNECTOR = RoomConfig.config.camera.connector;
const VIDEODEVICENAME = 'Cisco USB';
const AUDIODEVICENAME = 'Cisco USB';
const VIDEODEVICENAME = 'Cisco USB ou INOGENI';
const AUDIODEVICENAME = 'Cisco USB ou INOGENI';



Expand Down Expand Up @@ -392,6 +392,16 @@ Rkhelper.Status.addStatusChangeCallback(async function (status) {
Output: PROJECTORHDMICONNECTOR,
SourceId: localPcInput2
});
if (RoomConfig.config.room.autoEnablePresenterTrack) {
xapi.Command.Cameras.PresenterTrack.Set({
Mode: 'Follow'
});
}
else {
Rkhelper.System.Camera.getPresetId('Console').then(preset => {
xapi.Command.Camera.Preset.Activate({ PresetId: preset.PresetId });
});
}
}
else if (status.presLocation == 'remote') {
/* VIDEO ROUTING */
Expand Down

0 comments on commit b8a1d69

Please sign in to comment.