fix(essentials): Minor fixes for MockVc to make behavior more consistent with real hardware

This commit is contained in:
Neil Dorin
2021-08-27 09:48:43 -06:00
parent 8ab87af859
commit bfd383dfc7
2 changed files with 25 additions and 6 deletions

View File

@@ -127,12 +127,6 @@ namespace PepperDash.Essentials.UIDrivers.VC
codec.CallStatusChange += new EventHandler<CodecCallStatusItemChangeEventArgs>(Codec_CallStatusChange);
// If the codec is ready, then get the values we want, otherwise wait
if (Codec.IsReady)
Codec_IsReady();
else
codec.IsReadyChange += (o, a) => Codec_IsReady();
//InCall = new BoolFeedback(() => false);
LocalPrivacyIsMuted = new BoolFeedback(() => false);
@@ -223,6 +217,12 @@ namespace PepperDash.Essentials.UIDrivers.VC
SetupPasswordPrompt();
}
// If the codec is ready, then get the values we want, otherwise wait
if (Codec.IsReady)
Codec_IsReady();
else
codec.IsReadyChange += (o, a) => Codec_IsReady();
}
catch (Exception e)
{