mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
fix(essentials): Adds check for SendingMode property value before attempting to set fb
This commit is contained in:
@@ -873,8 +873,13 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
else if (conference.Presentation.LocalInstance[0].Source != null)
|
else if (conference.Presentation.LocalInstance[0].Source != null)
|
||||||
{
|
{
|
||||||
_presentationSource = conference.Presentation.LocalInstance[0].Source.IntValue;
|
_presentationSource = conference.Presentation.LocalInstance[0].Source.IntValue;
|
||||||
_presentationLocalOnly = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalOnly);
|
|
||||||
_presentationLocalRemote = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalRemote);
|
// Check for any values in the SendingMode property
|
||||||
|
if (conference.Presentation.LocalInstance.Any((i) => !string.IsNullOrEmpty(i.SendingMode.Value)))
|
||||||
|
{
|
||||||
|
_presentationLocalOnly = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalOnly);
|
||||||
|
_presentationLocalRemote = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalRemote);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PresentationSourceFeedback.FireUpdate();
|
PresentationSourceFeedback.FireUpdate();
|
||||||
|
|||||||
@@ -596,6 +596,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if(string.IsNullOrEmpty(_Value))
|
||||||
|
return false;
|
||||||
|
|
||||||
return _Value.ToLower() == "localonly";
|
return _Value.ToLower() == "localonly";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -604,6 +607,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if(string.IsNullOrEmpty(_Value))
|
||||||
|
return false;
|
||||||
|
|
||||||
return _Value.ToLower() == "localremote";
|
return _Value.ToLower() == "localremote";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user