mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 12:15:01 +00:00
Merged in feature/ecs-1162 (pull request #34)
ecs-1162: Messaging changes for Weil
This commit is contained in:
@@ -132,6 +132,14 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
/// 842
|
/// 842
|
||||||
/// </summary>
|
/// </summary>
|
||||||
const uint BCameraLayout = 842;
|
const uint BCameraLayout = 842;
|
||||||
|
/// <summary>
|
||||||
|
/// 843
|
||||||
|
/// </summary>
|
||||||
|
const uint BCameraSupportsAutoMode = 843;
|
||||||
|
/// <summary>
|
||||||
|
/// 844
|
||||||
|
/// </summary>
|
||||||
|
const uint BCameraSupportsOffMode = 844;
|
||||||
|
|
||||||
|
|
||||||
/********* Ushorts *********/
|
/********* Ushorts *********/
|
||||||
@@ -294,6 +302,21 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
PostCallsList();
|
PostCallsList();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
EISC.SetBoolSigAction(BCameraSupportsAutoMode, b =>
|
||||||
|
{
|
||||||
|
PostStatusMessage(new
|
||||||
|
{
|
||||||
|
cameraSupportsAutoMode = b
|
||||||
|
});
|
||||||
|
});
|
||||||
|
EISC.SetBoolSigAction(BCameraSupportsOffMode, b =>
|
||||||
|
{
|
||||||
|
PostStatusMessage(new
|
||||||
|
{
|
||||||
|
cameraSupportsOffMode = b
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Directory insanity
|
// Directory insanity
|
||||||
EISC.SetUShortSigAction(UDirectoryRowCount, u =>
|
EISC.SetUShortSigAction(UDirectoryRowCount, u =>
|
||||||
{
|
{
|
||||||
@@ -455,6 +478,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
calls = GetCurrentCallList(),
|
calls = GetCurrentCallList(),
|
||||||
cameraMode = GetCameraMode(),
|
cameraMode = GetCameraMode(),
|
||||||
cameraSelfView = EISC.GetBool(BCameraSelfView),
|
cameraSelfView = EISC.GetBool(BCameraSelfView),
|
||||||
|
cameraSupportsAutoMode = EISC.GetBool(BCameraSupportsAutoMode),
|
||||||
|
cameraSupportsOffMode = EISC.GetBool(BCameraSupportsOffMode),
|
||||||
currentCallString = EISC.GetString(SCurrentCallNumber),
|
currentCallString = EISC.GetString(SCurrentCallNumber),
|
||||||
currentDialString = EISC.GetString(SCurrentDialString),
|
currentDialString = EISC.GetString(SCurrentDialString),
|
||||||
directoryContactSelected = new
|
directoryContactSelected = new
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
/// 72
|
/// 72
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint SourceHasChanged = 71;
|
public const uint SourceHasChanged = 71;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 261 - The start of the range of speed dial visibles
|
/// 261 - The start of the range of speed dial visibles
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -98,9 +99,17 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint ShowCameraWhenNotInCall = 503;
|
public const uint ShowCameraWhenNotInCall = 503;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 504
|
||||||
|
/// </summary>
|
||||||
|
public const uint UseSourceEnabled = 504;
|
||||||
|
/// <summary>
|
||||||
/// 601
|
/// 601
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint SourceShareDisableStartJoin = 601;
|
public const uint SourceShareDisableJoinStart = 601;
|
||||||
|
/// <summary>
|
||||||
|
/// 621
|
||||||
|
/// </summary>
|
||||||
|
public const uint SourceIsEnabledJoinStart = 621;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,7 +130,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 101
|
/// 101
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint VolumeSliderCount = 101;
|
public const uint NumberOfAuxFaders = 101;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StringJoin
|
public class StringJoin
|
||||||
@@ -344,6 +353,10 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
EISC.PulseBool(BoolJoin.MasterVolumeIsMuted)));
|
EISC.PulseBool(BoolJoin.MasterVolumeIsMuted)));
|
||||||
Parent.AddAction(@"/room/room1/volumes/master/privacyMuteToggle", new Action(() =>
|
Parent.AddAction(@"/room/room1/volumes/master/privacyMuteToggle", new Action(() =>
|
||||||
EISC.PulseBool(BoolJoin.PrivacyMute)));
|
EISC.PulseBool(BoolJoin.PrivacyMute)));
|
||||||
|
|
||||||
|
|
||||||
|
// /xyzxyz/volumes/master/muteToggle ---> BoolInput[1]
|
||||||
|
|
||||||
for (uint i = 2; i <= 7; i++)
|
for (uint i = 2; i <= 7; i++)
|
||||||
{
|
{
|
||||||
var index = i;
|
var index = i;
|
||||||
@@ -410,6 +423,10 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// map MasterVolumeIsMuted join -> status/volumes/master/muted
|
||||||
|
//
|
||||||
|
|
||||||
EISC.SetBoolSigAction(BoolJoin.MasterVolumeIsMuted, b =>
|
EISC.SetBoolSigAction(BoolJoin.MasterVolumeIsMuted, b =>
|
||||||
PostStatusMessage(new
|
PostStatusMessage(new
|
||||||
{
|
{
|
||||||
@@ -464,6 +481,12 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EISC.SetUShortSigAction(UshortJoin.NumberOfAuxFaders, u =>
|
||||||
|
PostStatusMessage(new {
|
||||||
|
volumes = new {
|
||||||
|
numberOfAuxFaders = u,
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
// shutdown things
|
// shutdown things
|
||||||
EISC.SetSigTrueAction(BoolJoin.ShutdownCancel, new Action(() =>
|
EISC.SetSigTrueAction(BoolJoin.ShutdownCancel, new Action(() =>
|
||||||
@@ -558,7 +581,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
rmProps.VideoCodecKey = "videoCodec";
|
rmProps.VideoCodecKey = "videoCodec";
|
||||||
|
|
||||||
// volume control names
|
// volume control names
|
||||||
var volCount = EISC.UShortOutput[UshortJoin.VolumeSliderCount].UShortValue;
|
var volCount = EISC.UShortOutput[UshortJoin.NumberOfAuxFaders].UShortValue;
|
||||||
|
|
||||||
//// use Volumes object or?
|
//// use Volumes object or?
|
||||||
//rmProps.VolumeSliderNames = new List<string>();
|
//rmProps.VolumeSliderNames = new List<string>();
|
||||||
@@ -604,12 +627,17 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
for (uint i = 0; i <= 19; i++)
|
for (uint i = 0; i <= 19; i++)
|
||||||
{
|
{
|
||||||
var name = EISC.StringOutput[StringJoin.SourceNameJoinStart + i].StringValue;
|
var name = EISC.StringOutput[StringJoin.SourceNameJoinStart + i].StringValue;
|
||||||
if(string.IsNullOrEmpty(name))
|
if (EISC.BooleanOutput[BoolJoin.UseSourceEnabled].BoolValue
|
||||||
|
&& !EISC.BooleanOutput[BoolJoin.SourceIsEnabledJoinStart + i].BoolValue)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if(!EISC.BooleanOutput[BoolJoin.UseSourceEnabled].BoolValue && string.IsNullOrEmpty(name))
|
||||||
break;
|
break;
|
||||||
var icon = EISC.StringOutput[StringJoin.SourceIconJoinStart + i].StringValue;
|
var icon = EISC.StringOutput[StringJoin.SourceIconJoinStart + i].StringValue;
|
||||||
var key = EISC.StringOutput[StringJoin.SourceKeyJoinStart + i].StringValue;
|
var key = EISC.StringOutput[StringJoin.SourceKeyJoinStart + i].StringValue;
|
||||||
var type = EISC.StringOutput[StringJoin.SourceTypeJoinStart + i].StringValue;
|
var type = EISC.StringOutput[StringJoin.SourceTypeJoinStart + i].StringValue;
|
||||||
var disableShare = EISC.BooleanOutput[BoolJoin.SourceShareDisableStartJoin + i].BoolValue;
|
var disableShare = EISC.BooleanOutput[BoolJoin.SourceShareDisableJoinStart + i].BoolValue;
|
||||||
|
|
||||||
Debug.Console(0, this, "Adding source {0} '{1}'", key, name);
|
Debug.Console(0, this, "Adding source {0} '{1}'", key, name);
|
||||||
var newSLI = new SourceListItem{
|
var newSLI = new SourceListItem{
|
||||||
@@ -745,7 +773,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
{
|
{
|
||||||
if (ConfigIsLoaded)
|
if (ConfigIsLoaded)
|
||||||
{
|
{
|
||||||
var count = EISC.UShortOutput[101].UShortValue;
|
var count = EISC.UShortOutput[UshortJoin.NumberOfAuxFaders].UShortValue;
|
||||||
|
|
||||||
Debug.Console(1, this, "The Fader Count is : {0}", count);
|
Debug.Console(1, this, "The Fader Count is : {0}", count);
|
||||||
|
|
||||||
@@ -776,6 +804,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
volumes.Master.PrivacyMuted = EISC.BooleanOutput[BoolJoin.PrivacyMute].BoolValue;
|
volumes.Master.PrivacyMuted = EISC.BooleanOutput[BoolJoin.PrivacyMute].BoolValue;
|
||||||
|
|
||||||
volumes.AuxFaders = auxFaderDict;
|
volumes.AuxFaders = auxFaderDict;
|
||||||
|
volumes.NumberOfAuxFaders = EISC.UShortInput[UshortJoin.NumberOfAuxFaders].UShortValue;
|
||||||
|
|
||||||
PostStatusMessage(new
|
PostStatusMessage(new
|
||||||
{
|
{
|
||||||
@@ -862,6 +891,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
var d = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
var d = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
||||||
{
|
{
|
||||||
{ "laptop", "pc" },
|
{ "laptop", "pc" },
|
||||||
|
{ "pc", "pc" },
|
||||||
{ "wireless", "genericsource" },
|
{ "wireless", "genericsource" },
|
||||||
{ "iptv", "settopbox" }
|
{ "iptv", "settopbox" }
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
[JsonProperty("auxFaders")]
|
[JsonProperty("auxFaders")]
|
||||||
public Dictionary<string, Volume> AuxFaders { get; set; }
|
public Dictionary<string, Volume> AuxFaders { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("numberOfAuxFaders")]
|
||||||
|
public int NumberOfAuxFaders { get; set; }
|
||||||
|
|
||||||
public Volumes()
|
public Volumes()
|
||||||
{
|
{
|
||||||
AuxFaders = new Dictionary<string, Volume>();
|
AuxFaders = new Dictionary<string, Volume>();
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
[assembly: AssemblyCompany("PepperDash Technology Corp")]
|
[assembly: AssemblyCompany("PepperDash Technology Corp")]
|
||||||
[assembly: AssemblyProduct("PepperDashEssentials")]
|
[assembly: AssemblyProduct("PepperDashEssentials")]
|
||||||
[assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2018")]
|
[assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2018")]
|
||||||
[assembly: AssemblyVersion("1.4.0.*")]
|
[assembly: AssemblyVersion("1.4.444.*")]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user