adding some debug statements to try and suss out what's going on

This commit is contained in:
Andrew Welker
2020-11-24 16:04:01 -07:00
parent 56e106ff32
commit 14ad0eee48

View File

@@ -205,7 +205,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
protected Func<string> SelfviewPipPositionFeedbackFunc protected Func<string> SelfviewPipPositionFeedbackFunc
{ {
get { return () => _currentSelfviewPipPosition.Command ?? "Unknown"; } get
{
return
() =>
_currentSelfviewPipPosition != null
? _currentSelfviewPipPosition.Command ?? "Unknown"
: "Unknown";
}
} }
protected Func<string> LocalLayoutFeedbackFunc protected Func<string> LocalLayoutFeedbackFunc
@@ -1373,6 +1380,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
/// </summary> /// </summary>
private void UpdateCallStatus() private void UpdateCallStatus()
{ {
Debug.Console(1, this, "[UpdateCallStatus] Current Call Status: {0}",
Status.Call != null ? Status.Call.Sharing.State.ToString() : "no call");
if (Status.Call != null) if (Status.Call != null)
{ {
var callStatus = Status.Call.Status; var callStatus = Status.Call.Status;
@@ -1406,6 +1416,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
ActiveCalls.Add(newCall); ActiveCalls.Add(newCall);
Debug.Console(1, this, "[UpdateCallStatus] Current Call Status: {0}",
Status.Call != null ? Status.Call.Sharing.State.ToString() : "no call");
OnCallStatusChange(newCall); OnCallStatusChange(newCall);
} }
} }
@@ -1423,6 +1436,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
break; break;
} }
Debug.Console(1, this, "[UpdateCallStatus] Current Call Status: {0}",
Status.Call != null ? Status.Call.Sharing.State.ToString() : "no call");
OnCallStatusChange(existingCall); OnCallStatusChange(existingCall);
} }
} }
@@ -1460,6 +1476,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
{ {
base.OnCallStatusChange(item); base.OnCallStatusChange(item);
Debug.Console(1, this, "[OnCallStatusChange] Current Call Status: {0}",
Status.Call != null ? Status.Call.Sharing.State.ToString() : "no call");
if (_props.AutoDefaultLayouts) if (_props.AutoDefaultLayouts)
{ {
SetLayout(); SetLayout();