mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix:(Essentials) Created MeetingInfo Object if it didn't previously exist
This commit is contained in:
parent
147e712a01
commit
9b64b7b7f3
1 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue