mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +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 (conference.Presentation.LocalInstance.Count > 0)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
||||||
|
{
|
||||||
_presentationSource = 0;
|
_presentationSource = 0;
|
||||||
|
_presentationLocalOnly = false;
|
||||||
|
_presentationLocalRemote = false;
|
||||||
|
}
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
_presentationLocalOnly = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalOnly);
|
|
||||||
_presentationLocalRemote = conference.Presentation.LocalInstance.Any((i) => i.SendingMode.LocalRemote);
|
|
||||||
|
|
||||||
PresentationSourceFeedback.FireUpdate();
|
PresentationSourceFeedback.FireUpdate();
|
||||||
PresentationSendingLocalOnlyFeedback.FireUpdate();
|
PresentationSendingLocalOnlyFeedback.FireUpdate();
|
||||||
PresentationSendingLocalRemoteFeedback.FireUpdate();
|
PresentationSendingLocalRemoteFeedback.FireUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user