mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
feat:(Essentials) Add IsSharingMeeting setting to MeetingInfo
This commit is contained in:
@@ -25,7 +25,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
IRouting,
|
IRouting,
|
||||||
IHasScheduleAwareness, IHasCodecCameras, IHasParticipants, IHasCameraOff, IHasCameraMute, IHasCameraAutoMode,
|
IHasScheduleAwareness, IHasCodecCameras, IHasParticipants, IHasCameraOff, IHasCameraMute, IHasCameraAutoMode,
|
||||||
IHasFarEndContentStatus, IHasSelfviewPosition, IHasPhoneDialing, IHasZoomRoomLayouts, IHasParticipantPinUnpin,
|
IHasFarEndContentStatus, IHasSelfviewPosition, IHasPhoneDialing, IHasZoomRoomLayouts, IHasParticipantPinUnpin,
|
||||||
IHasParticipantAudioMute, IHasSelfviewSize, IPasswordPrompt, IHasStartMeeting, IHasMeetingInfo
|
IHasParticipantAudioMute, IHasSelfviewSize, IPasswordPrompt, IHasStartMeeting, IHasMeetingInfo, IHasPresentationOnlyMeeting
|
||||||
{
|
{
|
||||||
private const long MeetingRefreshTimer = 60000;
|
private const long MeetingRefreshTimer = 60000;
|
||||||
public uint DefaultMeetingDurationMin { get; private set; }
|
public uint DefaultMeetingDurationMin { get; private set; }
|
||||||
@@ -472,7 +472,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
ReceivingContent.FireUpdate();
|
ReceivingContent.FireUpdate();
|
||||||
|
|
||||||
// Update the share status of the meeting info
|
// Update the share status of the meeting info
|
||||||
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, Participants.Host.Name, MeetingInfo.Password, GetSharingStatus(), GetIsHostMyself());
|
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, Participants.Host.Name, MeetingInfo.Password, GetSharingStatus(), GetIsHostMyself(), MeetingInfo.IsSharingMeeting);
|
||||||
MeetingInfo = meetingInfo;
|
MeetingInfo = meetingInfo;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -630,11 +630,11 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
|
|
||||||
if (MeetingInfo == null)
|
if (MeetingInfo == null)
|
||||||
{
|
{
|
||||||
MeetingInfo = new MeetingInfo("", "", "", "",
|
//Ignoring for now, as the CallInfo return will create the appropriate value
|
||||||
GetSharingStatus(), GetIsHostMyself());
|
return;
|
||||||
}
|
}
|
||||||
// Update the share status of the meeting info
|
// Update the share status of the meeting info
|
||||||
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, MeetingInfo.Host, MeetingInfo.Password, GetSharingStatus(), GetIsHostMyself());
|
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, MeetingInfo.Host, MeetingInfo.Password, GetSharingStatus(), GetIsHostMyself(), MeetingInfo.IsSharingMeeting);
|
||||||
MeetingInfo = meetingInfo;
|
MeetingInfo = meetingInfo;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1206,7 +1206,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
Participants.CurrentParticipants = participants;
|
Participants.CurrentParticipants = participants;
|
||||||
|
|
||||||
// Update the share status of the meeting info
|
// Update the share status of the meeting info
|
||||||
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, Participants.Host.Name, MeetingInfo.Password, MeetingInfo.ShareStatus, GetIsHostMyself());
|
var meetingInfo = new MeetingInfo(MeetingInfo.Id, MeetingInfo.Name, Participants.Host.Name, MeetingInfo.Password, MeetingInfo.ShareStatus, GetIsHostMyself(), MeetingInfo.IsSharingMeeting);
|
||||||
MeetingInfo = meetingInfo;
|
MeetingInfo = meetingInfo;
|
||||||
|
|
||||||
PrintCurrentCallParticipants();
|
PrintCurrentCallParticipants();
|
||||||
@@ -1483,6 +1483,18 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
// fire the event as we've modified the participants list
|
// fire the event as we've modified the participants list
|
||||||
Participants.OnParticipantsChanged();
|
Participants.OnParticipantsChanged();
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "startlocalpresentmeeting":
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<zEvent.StartLocalPresentMeeting>(responseObj.ToString());
|
||||||
|
|
||||||
|
if (result.Success)
|
||||||
|
{
|
||||||
|
MeetingInfo = new MeetingInfo("", "", "", "", "", true, true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@@ -1776,8 +1788,6 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
|
|
||||||
protected override void OnCallStatusChange(CodecActiveCallItem item)
|
protected override void OnCallStatusChange(CodecActiveCallItem item)
|
||||||
{
|
{
|
||||||
base.OnCallStatusChange(item);
|
|
||||||
|
|
||||||
if (item.Status == eCodecCallStatus.Connected)
|
if (item.Status == eCodecCallStatus.Connected)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1792,10 +1802,13 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
host,
|
host,
|
||||||
Status.Call.Info.meeting_password,
|
Status.Call.Info.meeting_password,
|
||||||
GetSharingStatus(),
|
GetSharingStatus(),
|
||||||
GetIsHostMyself()
|
GetIsHostMyself(),
|
||||||
|
!String.Equals(Status.Call.Info.meeting_type,"NORMAL")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
base.OnCallStatusChange(item);
|
||||||
|
|
||||||
Debug.Console(1, this, "[OnCallStatusChange] Current Call Status: {0}",
|
Debug.Console(1, this, "[OnCallStatusChange] Current Call Status: {0}",
|
||||||
Status.Call != null ? Status.Call.Status.ToString() : "no call");
|
Status.Call != null ? Status.Call.Status.ToString() : "no call");
|
||||||
|
|
||||||
@@ -2153,6 +2166,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
|
|
||||||
public override void Dial(string number)
|
public override void Dial(string number)
|
||||||
{
|
{
|
||||||
|
Debug.Console(2, this, "Dialing number: {0}", number);
|
||||||
_lastDialedMeetingNumber = number;
|
_lastDialedMeetingNumber = number;
|
||||||
SendText(string.Format("zCommand Dial Join meetingNumber: {0}", number));
|
SendText(string.Format("zCommand Dial Join meetingNumber: {0}", number));
|
||||||
}
|
}
|
||||||
@@ -2862,6 +2876,36 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Implementation of IHasPresentationOnlyMeeting
|
||||||
|
|
||||||
|
public void StartSharingOnlyMeeting()
|
||||||
|
{
|
||||||
|
StartSharingOnlyMeeting(eSharingMeetingMode.None, 30, String.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartSharingOnlyMeeting(eSharingMeetingMode mode)
|
||||||
|
{
|
||||||
|
StartSharingOnlyMeeting(mode, 30, String.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartSharingOnlyMeeting(eSharingMeetingMode mode, ushort duration)
|
||||||
|
{
|
||||||
|
StartSharingOnlyMeeting(mode, duration, String.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartSharingOnlyMeeting(eSharingMeetingMode mode, ushort duration, string password)
|
||||||
|
{
|
||||||
|
SendText(String.Format("zCommand Dial Sharing Duration: {0} DisplayState: {1} Password: {2}", duration, mode, password));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartNormalMeetingFromSharingOnlyMeeting()
|
||||||
|
{
|
||||||
|
Debug.Console(2, this, "Converting Sharing Meeting to Normal Meeting");
|
||||||
|
SendText("zCommand call sharing ToNormal");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user