mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
fix:(Essentials) Created MeetingInfo Object if it didn't previously exist
This commit is contained in:
@@ -626,6 +626,13 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
case "isDirectPresentationConnected":
|
case "isDirectPresentationConnected":
|
||||||
case "isSharingBlackMagic":
|
case "isSharingBlackMagic":
|
||||||
{
|
{
|
||||||
|
Debug.Console(2, this, "Updating sharing status: {0}", a.PropertyName);
|
||||||
|
|
||||||
|
if (MeetingInfo == null)
|
||||||
|
{
|
||||||
|
MeetingInfo = new MeetingInfo("", "", "", "",
|
||||||
|
GetSharingStatus(), GetIsHostMyself());
|
||||||
|
}
|
||||||
// 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 = meetingInfo;
|
MeetingInfo = meetingInfo;
|
||||||
@@ -1828,6 +1835,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private bool GetIsHostMyself()
|
private bool GetIsHostMyself()
|
||||||
{
|
{
|
||||||
|
if (Participants.CurrentParticipants.Count == 0)
|
||||||
|
{
|
||||||
|
Debug.Console(2, this, "No current participants");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var host = Participants.Host;
|
var host = Participants.Host;
|
||||||
|
|
||||||
if(host == null)
|
if(host == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user