mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Attempts to unpin participant from same screenIndex if one is already pinned.
This commit is contained in:
parent
25e7e9634a
commit
08f4d8e9a2
1 changed files with 11 additions and 0 deletions
|
|
@ -2113,6 +2113,17 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
||||||
|
|
||||||
public void PinParticipant(int userId, int screenIndex)
|
public void PinParticipant(int userId, int screenIndex)
|
||||||
{
|
{
|
||||||
|
// Try to see if anyone is already pinned to this screen
|
||||||
|
var pinnedParticipant = Participants.CurrentParticipants.FirstOrDefault(p => p.ScreenIndexIsPinnedToFb.Equals(screenIndex));
|
||||||
|
|
||||||
|
if (pinnedParticipant != null)
|
||||||
|
{
|
||||||
|
// If we find a participant already pinned, unpin this one and clear the feedback values
|
||||||
|
UnPinParticipant(pinnedParticipant.UserId);
|
||||||
|
pinnedParticipant.IsPinnedFb = false;
|
||||||
|
pinnedParticipant.ScreenIndexIsPinnedToFb = -1;
|
||||||
|
}
|
||||||
|
|
||||||
SendText(string.Format("zCommand Call Pin Id: {0} Enable: on Screen: {1}", userId, screenIndex));
|
SendText(string.Format("zCommand Call Pin Id: {0} Enable: on Screen: {1}", userId, screenIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue