mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Merge remote-tracking branch 'origin/release' into bugfix/ecs-541-1
Conflicts: Essentials/PepperDashEssentials/UIDrivers/EssentialsHuddleVTC/EssentialsHuddleVtc1PanelAvFunctionsDriver.cs Fixed Presentation source selection on Spark codec to use original Source 1/2 values rather than connectorId
This commit is contained in:
@@ -212,7 +212,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to track the current connector used for the presentation source
|
/// Used to track the current connector used for the presentation source
|
||||||
/// </summary>
|
/// </summary>
|
||||||
int PresentationSourceConnector;
|
int PresentationSource;
|
||||||
|
|
||||||
string PresentationSourceKey;
|
string PresentationSourceKey;
|
||||||
|
|
||||||
@@ -309,9 +309,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
CodecOsdIn = new RoutingInputPort(RoutingPortNames.CodecOsd, eRoutingSignalType.AudioVideo,
|
CodecOsdIn = new RoutingInputPort(RoutingPortNames.CodecOsd, eRoutingSignalType.AudioVideo,
|
||||||
eRoutingPortConnectionType.Hdmi, new Action(StopSharing), this);
|
eRoutingPortConnectionType.Hdmi, new Action(StopSharing), this);
|
||||||
HdmiIn2 = new RoutingInputPort(RoutingPortNames.HdmiIn2, eRoutingSignalType.AudioVideo,
|
HdmiIn2 = new RoutingInputPort(RoutingPortNames.HdmiIn2, eRoutingSignalType.AudioVideo,
|
||||||
eRoutingPortConnectionType.Hdmi, new Action(SelectPresentationSourceConnector2), this);
|
eRoutingPortConnectionType.Hdmi, new Action(SelectPresentationSource1), this);
|
||||||
HdmiIn3 = new RoutingInputPort(RoutingPortNames.HdmiIn3, eRoutingSignalType.AudioVideo,
|
HdmiIn3 = new RoutingInputPort(RoutingPortNames.HdmiIn3, eRoutingSignalType.AudioVideo,
|
||||||
eRoutingPortConnectionType.Hdmi, new Action(SelectPresentationSourceConnector3), this);
|
eRoutingPortConnectionType.Hdmi, new Action(SelectPresentationSource2), this);
|
||||||
|
|
||||||
HdmiOut1 = new RoutingOutputPort(RoutingPortNames.HdmiOut1, eRoutingSignalType.AudioVideo,
|
HdmiOut1 = new RoutingOutputPort(RoutingPortNames.HdmiOut1, eRoutingSignalType.AudioVideo,
|
||||||
eRoutingPortConnectionType.Hdmi, null, this);
|
eRoutingPortConnectionType.Hdmi, null, this);
|
||||||
@@ -552,10 +552,10 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
if (conference.Presentation.LocalInstance.Count > 0)
|
if (conference.Presentation.LocalInstance.Count > 0)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
||||||
PresentationSourceConnector = 0;
|
PresentationSource = 0;
|
||||||
else if (conference.Presentation.LocalInstance[0].Source != null)
|
else if (conference.Presentation.LocalInstance[0].Source != null)
|
||||||
{
|
{
|
||||||
PresentationSourceConnector = conference.Presentation.LocalInstance[0].Source.IntValue;
|
PresentationSource = conference.Presentation.LocalInstance[0].Source.IntValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -992,9 +992,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SelectPresentationByConnector(int connector)
|
public void SelectPresentationByConnector(int source)
|
||||||
{
|
{
|
||||||
PresentationSourceConnector = connector;
|
PresentationSource = source;
|
||||||
|
|
||||||
StartSharing();
|
StartSharing();
|
||||||
}
|
}
|
||||||
@@ -1002,17 +1002,17 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Select source 1 as the presetnation source
|
/// Select source 1 as the presetnation source
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SelectPresentationSourceConnector2()
|
public void SelectPresentationSource1()
|
||||||
{
|
{
|
||||||
SelectPresentationByConnector(2);
|
SelectPresentationByConnector(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Select source 2 as the presetnation source
|
/// Select source 2 as the presetnation source
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SelectPresentationSourceConnector3()
|
public void SelectPresentationSource2()
|
||||||
{
|
{
|
||||||
SelectPresentationByConnector(3);
|
SelectPresentationByConnector(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1027,7 +1027,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
else
|
else
|
||||||
sendingMode = "LocalOnly";
|
sendingMode = "LocalOnly";
|
||||||
|
|
||||||
SendText(string.Format("xCommand Presentation Start PresentationSource: {0} SendingMode: {1}", PresentationSourceConnector, sendingMode));
|
SendText(string.Format("xCommand Presentation Start PresentationSource: {0} SendingMode: {1}", PresentationSource, sendingMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1035,7 +1035,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public override void StopSharing()
|
public override void StopSharing()
|
||||||
{
|
{
|
||||||
PresentationSourceConnector = 0;
|
PresentationSource = 0;
|
||||||
|
|
||||||
SendText("xCommand Presentation Stop");
|
SendText("xCommand Presentation Stop");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyTitle("PepperDashEssentials")]
|
[assembly: AssemblyTitle("PepperDashEssentials")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("PepperDash Technology Corp")]
|
||||||
[assembly: AssemblyProduct("PepperDashEssentials")]
|
[assembly: AssemblyProduct("PepperDashEssentials")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
[assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2017")]
|
||||||
[assembly: AssemblyVersion("1.0.0.*")]
|
[assembly: AssemblyVersion("1.0.1.*")]
|
||||||
|
|
||||||
|
|||||||
@@ -192,8 +192,6 @@ namespace PepperDash.Essentials
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Meeting LastMeetingDismissed;
|
Meeting LastMeetingDismissed;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor
|
/// Constructor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -436,9 +434,6 @@ namespace PepperDash.Essentials
|
|||||||
// Every 60 seconds, check meetings list for the closest, joinable meeting
|
// Every 60 seconds, check meetings list for the closest, joinable meeting
|
||||||
var ss = CurrentRoom.ScheduleSource;
|
var ss = CurrentRoom.ScheduleSource;
|
||||||
var meetings = ss.CodecSchedule.Meetings;
|
var meetings = ss.CodecSchedule.Meetings;
|
||||||
Debug.Console(0, "***** Checking meetings *****");
|
|
||||||
foreach (var m in meetings)
|
|
||||||
Debug.Console(0, "****** {0} {1} ******", m.StartTime.ToShortTimeString(), m.Joinable);
|
|
||||||
|
|
||||||
if (meetings.Count > 0)
|
if (meetings.Count > 0)
|
||||||
{
|
{
|
||||||
@@ -450,16 +445,13 @@ namespace PepperDash.Essentials
|
|||||||
|
|
||||||
if (CurrentRoom.OnFeedback.BoolValue
|
if (CurrentRoom.OnFeedback.BoolValue
|
||||||
&& LastMeetingDismissed == meeting)
|
&& LastMeetingDismissed == meeting)
|
||||||
//|| (LastMeetingDismissed != null && !LastMeetingDismissed.Joinable)))
|
|
||||||
{
|
{
|
||||||
Debug.Console(0, "****** Ignoring previously cancelled meeting warning ******");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LastMeetingDismissed = null;
|
LastMeetingDismissed = null;
|
||||||
if (meeting != null)
|
if (meeting != null)
|
||||||
{
|
{
|
||||||
Debug.Console(0, "***** First joinable meeting: {0} {1}", meeting.StartTime.ToShortTimeString(), meeting.Joinable);
|
|
||||||
TriList.SetString(UIStringJoin.MeetingsOrContactMethodListTitleText, "Upcoming meeting");
|
TriList.SetString(UIStringJoin.MeetingsOrContactMethodListTitleText, "Upcoming meeting");
|
||||||
TriList.SetString(UIStringJoin.NextMeetingStartTimeText, meeting.StartTime.ToShortTimeString());
|
TriList.SetString(UIStringJoin.NextMeetingStartTimeText, meeting.StartTime.ToShortTimeString());
|
||||||
TriList.SetString(UIStringJoin.NextMeetingEndTimeText, meeting.EndTime.ToShortTimeString());
|
TriList.SetString(UIStringJoin.NextMeetingEndTimeText, meeting.EndTime.ToShortTimeString());
|
||||||
@@ -1027,20 +1019,6 @@ namespace PepperDash.Essentials
|
|||||||
TriList.SetSigFalseAction(UIBoolJoin.TechExitButton, () =>
|
TriList.SetSigFalseAction(UIBoolJoin.TechExitButton, () =>
|
||||||
PopupInterlock.HideAndClear());
|
PopupInterlock.HideAndClear());
|
||||||
|
|
||||||
//HeaderGearButton = new HeaderListButton(HeaderButtonsList, 5);
|
|
||||||
//HeaderGearButton.SetIcon(HeaderListButton.Gear);
|
|
||||||
//HeaderGearButton.OutputSig.SetSigHeldAction(2000,
|
|
||||||
// ShowTech,
|
|
||||||
// null,
|
|
||||||
// () =>
|
|
||||||
// {
|
|
||||||
// if (CurrentRoom.OnFeedback.BoolValue)
|
|
||||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPageVisible);
|
|
||||||
// else
|
|
||||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPagePowerOffVisible);
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
// Help button and popup
|
// Help button and popup
|
||||||
if (CurrentRoom.Config.Help != null)
|
if (CurrentRoom.Config.Help != null)
|
||||||
{
|
{
|
||||||
@@ -1072,36 +1050,11 @@ namespace PepperDash.Essentials
|
|||||||
//TriList.StringInput[UIStringJoin.HelpMessage].StringValue = message;
|
//TriList.StringInput[UIStringJoin.HelpMessage].StringValue = message;
|
||||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HelpPageVisible);
|
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HelpPageVisible);
|
||||||
});
|
});
|
||||||
//var helpButton = new HeaderListButton(HeaderButtonsList, 4);
|
|
||||||
//helpButton.SetIcon(HeaderListButton.Help);
|
|
||||||
//helpButton.OutputSig.SetSigFalseAction(() =>
|
|
||||||
//{
|
|
||||||
// string message = null;
|
|
||||||
// var room = DeviceManager.GetDeviceForKey(Config.DefaultRoomKey)
|
|
||||||
// as EssentialsHuddleSpaceRoom;
|
|
||||||
// if (room != null)
|
|
||||||
// message = room.Config.HelpMessage;
|
|
||||||
// else
|
|
||||||
// message = "Sorry, no help message available. No room connected.";
|
|
||||||
// //TriList.StringInput[UIStringJoin.HelpMessage].StringValue = message;
|
|
||||||
// PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HelpPageVisible);
|
|
||||||
//});
|
|
||||||
uint nextJoin = 3953;
|
uint nextJoin = 3953;
|
||||||
|
|
||||||
// Lights button
|
|
||||||
//if (WHATEVER MAKES LIGHTS WORK)
|
|
||||||
//{
|
|
||||||
// // do lights
|
|
||||||
// nextIndex--;
|
|
||||||
//}
|
|
||||||
|
|
||||||
// Calendar button
|
// Calendar button
|
||||||
if (_CurrentRoom.ScheduleSource != null) // ******************* Do we need a config option here as well?
|
if (_CurrentRoom.ScheduleSource != null)
|
||||||
{
|
{
|
||||||
//var calBut = new HeaderListButton(HeaderButtonsList, nextIndex);
|
|
||||||
//calBut.SetIcon(HeaderListButton.Calendar);
|
|
||||||
//calBut.OutputSig.SetSigFalseAction(CalendarPress);
|
|
||||||
|
|
||||||
TriList.SetString(nextJoin, "Calendar");
|
TriList.SetString(nextJoin, "Calendar");
|
||||||
TriList.SetSigFalseAction(nextJoin, CalendarPress);
|
TriList.SetSigFalseAction(nextJoin, CalendarPress);
|
||||||
|
|
||||||
@@ -1109,10 +1062,6 @@ namespace PepperDash.Essentials
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call button
|
// Call button
|
||||||
//HeaderCallButton = new HeaderListButton(HeaderButtonsList, nextJoin);
|
|
||||||
//HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
|
||||||
//HeaderCallButton.OutputSig.SetSigFalseAction(ShowActiveCallsList);
|
|
||||||
|
|
||||||
TriList.SetString(nextJoin, "DND");
|
TriList.SetString(nextJoin, "DND");
|
||||||
TriList.SetSigFalseAction(nextJoin, ShowActiveCallsList);
|
TriList.SetSigFalseAction(nextJoin, ShowActiveCallsList);
|
||||||
HeaderCallButtonIconSig = TriList.StringInput[nextJoin];
|
HeaderCallButtonIconSig = TriList.StringInput[nextJoin];
|
||||||
@@ -1122,15 +1071,10 @@ namespace PepperDash.Essentials
|
|||||||
// blank any that remain
|
// blank any that remain
|
||||||
for (var i = nextJoin; i > 3950; i--)
|
for (var i = nextJoin; i > 3950; i--)
|
||||||
{
|
{
|
||||||
//var blankBut = new HeaderListButton(HeaderButtonsList, i);
|
|
||||||
//blankBut.ClearIcon();
|
|
||||||
//blankBut.OutputSig.SetSigFalseAction(() => { });
|
|
||||||
|
|
||||||
TriList.SetString(i, "Blank");
|
TriList.SetString(i, "Blank");
|
||||||
TriList.SetSigFalseAction(i, () => { });
|
TriList.SetSigFalseAction(i, () => { });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TriList.SetSigFalseAction(UIBoolJoin.HeaderCallStatusLabelPress, ShowActiveCallsList);
|
TriList.SetSigFalseAction(UIBoolJoin.HeaderCallStatusLabelPress, ShowActiveCallsList);
|
||||||
|
|
||||||
// Set Call Status Subpage Position
|
// Set Call Status Subpage Position
|
||||||
@@ -1148,7 +1092,6 @@ namespace PepperDash.Essentials
|
|||||||
TriList.SetBool(UIBoolJoin.HeaderCallStatusRightPositionVisible, false);
|
TriList.SetBool(UIBoolJoin.HeaderCallStatusRightPositionVisible, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HeaderButtonsAreSetUp = true;
|
HeaderButtonsAreSetUp = true;
|
||||||
|
|
||||||
ComputeHeaderCallStatus(CurrentRoom.VideoCodec);
|
ComputeHeaderCallStatus(CurrentRoom.VideoCodec);
|
||||||
@@ -1365,8 +1308,6 @@ namespace PepperDash.Essentials
|
|||||||
(previousDev as IPower).UnlinkButtons(TriList);
|
(previousDev as IPower).UnlinkButtons(TriList);
|
||||||
if (previousDev is ITransport)
|
if (previousDev is ITransport)
|
||||||
(previousDev as ITransport).UnlinkButtons(TriList);
|
(previousDev as ITransport).UnlinkButtons(TriList);
|
||||||
//if (previousDev is IRadio)
|
|
||||||
// (previousDev as IRadio).UnlinkButtons(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -633,7 +633,6 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
/// <param name="dir"></param>
|
/// <param name="dir"></param>
|
||||||
void RefreshDirectory()
|
void RefreshDirectory()
|
||||||
{
|
{
|
||||||
Debug.Console(0, "****** RefreshDirectory!");
|
|
||||||
if (CurrentDirectoryResult.DirectoryResults.Count > 0)
|
if (CurrentDirectoryResult.DirectoryResults.Count > 0)
|
||||||
{
|
{
|
||||||
ushort i = 0;
|
ushort i = 0;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user