mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
fix(essentials): Fixes SharingSourceFeedback value to actually read FB state instead of which on screen instructions are shown
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user