mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 12:54:54 +00:00
fix(essentials): fixes exception when parsing presentation local instance ghosted response
This commit is contained in:
@@ -830,15 +830,18 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||
if (conference.Presentation.LocalInstance.Count > 0)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
||||
{
|
||||
_presentationSource = 0;
|
||||
_presentationLocalOnly = false;
|
||||
_presentationLocalRemote = false;
|
||||
}
|
||||
else if (conference.Presentation.LocalInstance[0].Source != null)
|
||||
{
|
||||
_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);
|
||||
}
|
||||
|
||||
_presentationLocalOnly = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalOnly);
|
||||
_presentationLocalRemote = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalRemote);
|
||||
|
||||
PresentationSourceFeedback.FireUpdate();
|
||||
PresentationSendingLocalOnlyFeedback.FireUpdate();
|
||||
PresentationSendingLocalRemoteFeedback.FireUpdate();
|
||||
|
||||
Reference in New Issue
Block a user