HDCP Disable in from config

This commit is contained in:
Heath Volmer
2018-02-07 13:55:56 -07:00
parent 53ee87c9be
commit 88e82fb398
3 changed files with 4 additions and 5 deletions

View File

@@ -987,7 +987,6 @@ namespace PepperDash.Essentials
void SetupSourceList()
{
var inCall = CurrentRoom.InCallFeedback.BoolValue;
Debug.Console(0, "**** REDRAWING SOURCES InCall={0}", inCall);
var config = ConfigReader.ConfigObject.SourceLists;
if (config.ContainsKey(_CurrentRoom.SourceListKey))
{
@@ -1000,11 +999,9 @@ namespace PepperDash.Essentials
var srcConfig = kvp.Value;
// Skip sources marked as not included, and filter list of non-sharable sources when in call
// or on share screen
Debug.Console(0, "*** Source list item: {0}", Newtonsoft.Json.JsonConvert.SerializeObject(srcConfig));
if (!srcConfig.IncludeInSourceList || (inCall && srcConfig.DisableCodecSharing)
if (!srcConfig.IncludeInSourceList || (inCall && srcConfig.DisableCodecSharing)
|| this.CurrentMode == UiDisplayMode.Call && srcConfig.DisableCodecSharing)
{
Debug.Console(0, "**** SKIPPING {0} IN SOURCE LIST", kvp.Key);
continue;
}