Skip to content

Commit

Permalink
feat: add additional speakertrack commands
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Feb 13, 2024
1 parent b9e0ccf commit 412795a
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/CiscoCodecJoinMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,66 @@ public class CiscoCodecJoinMap : VideoCodecControllerJoinMap
JoinType = eJoinType.Digital
});

[JoinName("SpeakerTrackGroupDeactivate")]
public JoinDataComplete SpeakerTrackGroupDeactivate = new JoinDataComplete(
new JoinData
{
JoinNumber = 451,
JoinSpan = 1,
},
new JoinMetadata
{
Description = "Deactivate SpeakerTrack Group mode",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
}
);

[JoinName("SpeakerTrackGroupActivate")]
public JoinDataComplete SpeakerTrackGroupActivate = new JoinDataComplete(
new JoinData
{
JoinNumber = 452,
JoinSpan = 1,
},
new JoinMetadata
{
Description = "Activate SpeakerTrack Group mode.",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
}
);

[JoinName("SpeakerTrackFramesDeactivate")]
public JoinDataComplete SpeakerTrackFramesDeactivate = new JoinDataComplete(
new JoinData
{
JoinNumber = 453,
JoinSpan = 1,
},
new JoinMetadata
{
Description = "Deactivate SpeakerTrack Frames mode",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
}
);

[JoinName("SpeakerTrackFramesActivate")]
public JoinDataComplete SpeakerTrackFramesActivate = new JoinDataComplete(
new JoinData
{
JoinNumber = 454,
JoinSpan = 1,
},
new JoinMetadata
{
Description = "Activate SpeakerTrack Frames mode.",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
}
);

#endregion


Expand Down
51 changes: 51 additions & 0 deletions src/CiscoRoomOsCodec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5339,6 +5339,11 @@ public void LinkCiscoCodecToApi(BasicTriList trilist, CiscoCodecJoinMap joinMap)
}
});

trilist.SetSigTrueAction(joinMap.SpeakerTrackFramesActivate.JoinNumber, SpeakerTrackFramesOn);
trilist.SetSigTrueAction(joinMap.SpeakerTrackFramesDeactivate.JoinNumber, SpeakerTrackFramesOff);
trilist.SetSigTrueAction(joinMap.SpeakerTrackGroupActivate.JoinNumber, SpeakerTrackGroupOn);
trilist.SetSigTrueAction(joinMap.SpeakerTrackGroupDeactivate.JoinNumber, SpeakerTrackGroupOff);


DirectorySearchInProgress.LinkInputSig(trilist.BooleanInput[joinMap.DirectorySearchBusy.JoinNumber]);
PresentationActiveFeedback.LinkInputSig(trilist.BooleanInput[joinMap.PresentationActive.JoinNumber]);
Expand Down Expand Up @@ -5829,6 +5834,8 @@ public void SpeakerTrackOn()
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Closeup Activate");
EnqueueCommand("xCommand Cameras SpeakerTrack Frames Deactivate");
EnqueueCommand("xCommand Cameras SpeakerTrack Activate");
}

Expand All @@ -5843,6 +5850,49 @@ public void SpeakerTrackOff()

}

public void SpeakerTrackGroupOn()
{
if (CameraIsOffFeedback.BoolValue)
{
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Closeup Deactivate");
EnqueueCommand("xCommand Cameras SpeakerTrack Frames Deactivate");
EnqueueCommand("xCommand Cameras SpeakerTrack Activate");
}

public void SpeakerTrackGroupOff()
{
if (CameraIsOffFeedback.BoolValue)
{
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Deactivate");
}

public void SpeakerTrackFramesOn()
{
if (CameraIsOffFeedback.BoolValue)
{
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Frames Activate");
EnqueueCommand("xCommand Cameras SpeakerTrack Activate");
}

public void SpeakerTrackFramesOff()
{
if (CameraIsOffFeedback.BoolValue)
{
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Deactivate");
}



#endregion
Expand Down Expand Up @@ -5874,6 +5924,7 @@ public void PresenterTrackFollow()
CameraMuteOff();
}

EnqueueCommand("xCommand Cameras SpeakerTrack Deactivate");
EnqueueCommand("xCommand Cameras PresenterTrack Set Mode: Follow");
}

Expand Down

0 comments on commit 412795a

Please sign in to comment.