mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
Fixed inverted video mute FB and adds debug statements to help see participant pin status
This commit is contained in:
@@ -613,6 +613,37 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||||||
{
|
{
|
||||||
if (meetingIndex >= maxParticipants * offset) break;
|
if (meetingIndex >= maxParticipants * offset) break;
|
||||||
|
|
||||||
|
Debug.Console(2, this,
|
||||||
|
@"Updating Participant on xsig:
|
||||||
|
Name: {0} (s{8})
|
||||||
|
AudioMute: {1} (d{9})
|
||||||
|
VideoMute: {2} (d{10})
|
||||||
|
CanMuteVideo: {3} ({d11})
|
||||||
|
IsHost: {4} (d{12})
|
||||||
|
HandIsRaised: {5} (d{13})
|
||||||
|
IsPinned: {6} (d{14})
|
||||||
|
ScreenIndexIsPinnedTo: {7} (a{15})
|
||||||
|
",
|
||||||
|
participant.Name,
|
||||||
|
participant.AudioMuteFb,
|
||||||
|
participant.VideoMuteFb,
|
||||||
|
participant.CanMuteVideo,
|
||||||
|
participant.IsHost,
|
||||||
|
participant.HandIsRaisedFb,
|
||||||
|
participant.IsPinnedFb,
|
||||||
|
participant.ScreenIndexIsPinnedToFb,
|
||||||
|
stringIndex + 1,
|
||||||
|
digitalIndex + 1,
|
||||||
|
digitalIndex + 2,
|
||||||
|
digitalIndex + 3,
|
||||||
|
digitalIndex + 4,
|
||||||
|
digitalIndex + 5,
|
||||||
|
digitalIndex + 6,
|
||||||
|
digitalIndex + 7,
|
||||||
|
analogIndex + 1
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//digitals
|
//digitals
|
||||||
tokenArray[digitalIndex] = new XSigDigitalToken(digitalIndex + 1, participant.AudioMuteFb);
|
tokenArray[digitalIndex] = new XSigDigitalToken(digitalIndex + 1, participant.AudioMuteFb);
|
||||||
tokenArray[digitalIndex + 1] = new XSigDigitalToken(digitalIndex + 2, participant.VideoMuteFb);
|
tokenArray[digitalIndex + 1] = new XSigDigitalToken(digitalIndex + 2, participant.VideoMuteFb);
|
||||||
|
|||||||
@@ -1440,7 +1440,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
CanMuteVideo = p.IsVideoCanMuteByHost,
|
CanMuteVideo = p.IsVideoCanMuteByHost,
|
||||||
CanUnmuteVideo = p.IsVideoCanUnmuteByHost,
|
CanUnmuteVideo = p.IsVideoCanUnmuteByHost,
|
||||||
AudioMuteFb = p.AudioStatusState == "AUDIO_MUTED",
|
AudioMuteFb = p.AudioStatusState == "AUDIO_MUTED",
|
||||||
VideoMuteFb = p.VideoStatusIsSending,
|
VideoMuteFb = !p.VideoStatusIsSending,
|
||||||
HandIsRaisedFb = p.HandStatus.HandIsRaisedAndValid,
|
HandIsRaisedFb = p.HandStatus.HandIsRaisedAndValid,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1345,6 +1345,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
{
|
{
|
||||||
var status = responseObj.ToObject<zEvent.PinStatusOfScreenNotification>();
|
var status = responseObj.ToObject<zEvent.PinStatusOfScreenNotification>();
|
||||||
|
|
||||||
|
Debug.Console(1, this, "Pin Status notificatino for UserId: {0}, ScreenIndex: {1}", status.PinnedUserId, status.ScreenIndex);
|
||||||
|
|
||||||
var participant = Participants.CurrentParticipants.FirstOrDefault(p => p.UserId.Equals(status.PinnedUserId));
|
var participant = Participants.CurrentParticipants.FirstOrDefault(p => p.UserId.Equals(status.PinnedUserId));
|
||||||
|
|
||||||
if (participant != null)
|
if (participant != null)
|
||||||
@@ -1358,11 +1360,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
|
|
||||||
if (participant == null)
|
if (participant == null)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "no matching participant found by pinned_user_id: {0} or screen_index: {1}", status.PinnedUserId, status.ScreenIndex);
|
Debug.Console(1, this, "no matching participant found by pinned_user_id: {0} or screen_index: {1}", status.PinnedUserId, status.ScreenIndex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Debug.Console(2, this, "Unpinning {0} with id: {1} from screen index: {2}", participant.Name, participant.UserId, status.ScreenIndex);
|
||||||
participant.IsPinnedFb = false;
|
participant.IsPinnedFb = false;
|
||||||
participant.ScreenIndexIsPinnedToFb = -1;
|
participant.ScreenIndexIsPinnedToFb = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user