Fixed bug with InputStateFeedback event handler in MicrophonePrivacyController. Tested OK with Digital Inputs on RMC3 triggering privacy toggle

This commit is contained in:
Neil Dorin
2017-11-08 10:33:30 -07:00
parent f9d1a737c4
commit 7a1ead7b56
5 changed files with 6 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ namespace PepperDash.Essentials.Devices.Common.Microphones
/// <param name="e"></param>
void InputStateFeedback_OutputChange(object sender, EventArgs e)
{
if ((sender as IDigitalInput).InputStateFeedback.BoolValue)
if ((sender as BoolFeedback).BoolValue == true)
TogglePrivacyMute();
}

View File

@@ -1297,7 +1297,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
get
{
if (CodecConfiguration.Configuration.H323.H323Alias.ID != null)
return CodecConfiguration.Configuration.H323.H323Alias.E164.Value;
return CodecConfiguration.Configuration.H323.H323Alias.ID.Value;
else
return string.Empty;
}

View File

@@ -243,7 +243,10 @@ namespace PepperDash.Essentials
}
InCallFeedback = new BoolFeedback(() => VideoCodec.IsInCall);
IsSharingFeedback = new BoolFeedback(() => VideoCodec.SharingSourceFeedback.StringValue != null);
VideoCodec.CallStatusChange += (o, a) => this.InCallFeedback.FireUpdate();
IsSharingFeedback = new BoolFeedback(() => VideoCodec.SharingContentIsOnFeedback.BoolValue);
VideoCodec.SharingContentIsOnFeedback.OutputChange += (o, a) => this.IsSharingFeedback.FireUpdate();
// link privacy to VC (for now?)
PrivacyModeIsOnFeedback = new BoolFeedback(() => VideoCodec.PrivacyModeIsOnFeedback.BoolValue);