Finalized IHasExternalSourceSwitching adding method for setting the ExternalSource State

Adds arguments for External Source type it the AddExternalSource()
Adds subscription and parsing for External Source events
This commit is contained in:
Jason Alborough
2020-08-17 14:52:49 -04:00
parent aea6942a1f
commit f0d10fb1f9
5 changed files with 193 additions and 136 deletions

View File

@@ -695,6 +695,10 @@ namespace PepperDash.Essentials
(room as EssentialsHuddleSpaceRoom).RunRouteAction("roomOff");
}
/// <summary>
/// Setup the external sources for the Cisco Touch 10 devices that support IHasExternalSourceSwitch
/// </summary>
private void SetCodecExternalSources()
{
@@ -707,12 +711,13 @@ namespace PepperDash.Essentials
foreach (var kvp in srcList)
{
var srcConfig = kvp.Value;
Debug.Console(1, "**** KEY {0}", kvp.Key);
if (kvp.Key != "codecOsd" && kvp.Key != "roomOff")
{
(VideoCodec as IHasExternalSourceSwitching).AddExternalSource(codecTieLine, srcConfig.PreferredName);
(VideoCodec as IHasExternalSourceSwitching).AddExternalSource(codecTieLine, kvp.Key, srcConfig.PreferredName, PepperDash.Essentials.Devices.Common.VideoCodec.Cisco.eExternalSourceType.desktop);
(VideoCodec as IHasExternalSourceSwitching).SetExternalSourceState(kvp.Key, PepperDash.Essentials.Devices.Common.VideoCodec.Cisco.eExternalSourceMode.Ready);
}
}