fix(essentials): Fixes SharingSourceFeedback value to actually read FB state instead of which on screen instructions are shown

This commit is contained in:
Neil Dorin
2022-09-14 16:40:26 -06:00
parent 4a98b58b60
commit 939afb7aae

View File

@@ -240,7 +240,18 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
protected override Func<string> SharingSourceFeedbackFunc protected override Func<string> SharingSourceFeedbackFunc
{ {
get { return () => Status.Sharing.dispState; } get
{
return () =>
{
if (Status.Sharing.isAirHostClientConnected)
return "Airplay";
else if (Status.Sharing.isDirectPresentationConnected || Status.Sharing.isBlackMagicConnected)
return "Laptop";
else return "None";
};
}
} }
protected override Func<bool> SharingContentIsOnFeedbackFunc protected override Func<bool> SharingContentIsOnFeedbackFunc
@@ -743,15 +754,11 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
Status.Sharing.PropertyChanged += (o, a) => Status.Sharing.PropertyChanged += (o, a) =>
{ {
SharingSourceFeedback.FireUpdate();
switch (a.PropertyName) switch (a.PropertyName)
{ {
case "dispState":
SharingSourceFeedback.FireUpdate();
break;
case "password": case "password":
break; break;
case "isAirHostClientConnected":
case "isDirectPresentationConnected":
case "isSharingBlackMagic": case "isSharingBlackMagic":
{ {
Debug.Console(2, this, "Updating sharing status: {0}", a.PropertyName); Debug.Console(2, this, "Updating sharing status: {0}", a.PropertyName);