From f9d320e2b27944a7fca6b6fd03c2f409bad74d57 Mon Sep 17 00:00:00 2001 From: Heath Volmer Date: Thu, 5 Oct 2017 17:43:10 -0600 Subject: [PATCH] Changes for layout and selfview --- .../Essentials Devices Common.csproj | 8 -------- .../VideoCodec/CiscoCodec/CiscoCodec.cs | 4 ++-- .../UI/JoinConstants/UIStringlJoin.cs | 4 ++++ .../VC/EssentialsVideoCodecUiDriver.cs | 17 ++++++++++++++--- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Essentials Devices Common/Essentials Devices Common/Essentials Devices Common.csproj b/Essentials Devices Common/Essentials Devices Common/Essentials Devices Common.csproj index 6c43f4b5..76037968 100644 --- a/Essentials Devices Common/Essentials Devices Common/Essentials Devices Common.csproj +++ b/Essentials Devices Common/Essentials Devices Common/Essentials Devices Common.csproj @@ -46,14 +46,6 @@ off - - False - References\Cisco One Button To Push.dll - - - False - References\Cisco SX80 Corporate Phone Book.dll - False ..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.DeviceSupport.dll diff --git a/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs b/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs index bd4c5505..9ce170fe 100644 --- a/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs +++ b/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs @@ -8,8 +8,8 @@ using Crestron.SimplSharp.CrestronXml; using Crestron.SimplSharp.CrestronXml.Serialization; //using Crestron.SimplSharpPro; using Newtonsoft.Json; -using Cisco_One_Button_To_Push; -using Cisco_SX80_Corporate_Phone_Book; +//using Cisco_One_Button_To_Push; +//using Cisco_SX80_Corporate_Phone_Book; using PepperDash.Core; using PepperDash.Essentials.Core; diff --git a/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs b/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs index 0a17d2a1..7aeb3feb 100644 --- a/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs +++ b/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs @@ -26,6 +26,10 @@ namespace PepperDash.Essentials public const uint VCRecentListTextStart = 1201; // RANGE IN USE public const uint VCRecentListTextEnd = 1230; + /// + /// 1231 - the current layout mode + /// + public const uint VCLayoutModeText = 1231; /// /// 1301 - 1400 diff --git a/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs b/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs index 91966613..9f1dfb2a 100644 --- a/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs +++ b/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs @@ -446,9 +446,20 @@ namespace PepperDash.Essentials.UIDrivers.VC void SetupSelfViewControls() { TriList.SetSigFalseAction(UIBoolJoin.VCStagingSelfViewLayoutPress, this.ShowSelfViewLayout); - TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewTogglePress, () => { }); - TriList.SetSigFalseAction(UIBoolJoin.VCRemoteViewTogglePress, () => { }); - TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewPipTogglePress, () => { }); + var svc = Codec as IHasCodecSelfview; + if (svc != null) + { + TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewTogglePress, svc.SelfviewModeToggle); + svc.SelfviewIsOnFeedback.LinkInputSig(TriList.BooleanInput[UIBoolJoin.VCSelfViewTogglePress]); + + //TriList.SetSigFalseAction(UIBoolJoin.VCSelfViewPipTogglePress, () => { }); + } + var lc = Codec as IHasCodecLayouts; + if (lc != null) + { + TriList.SetSigFalseAction(UIBoolJoin.VCRemoteViewTogglePress, lc.LocalLayoutToggle); + lc.LocalLayoutFeedback.LinkInputSig(TriList.StringInput[UIStringJoin.VCLayoutModeText]); + } } ///