예제 #1
0
        private bool CheckIsUserSpeaking(bool showMsgBar = false)
        {
            //return true;

            List <ParticipantInfo> participants = _sdkService.GetParticipants();

            var self = participants.FirstOrDefault(p => p.m_contactInfo.m_szPhoneId == _sdkService.SelfPhoneId);

            if (showMsgBar && self.m_bIsSpeaking != 1)
            {
                HasErrorMsg("-1", Messages.WarningYouAreNotSpeaking);
            }

            return(self.m_bIsSpeaking == 1);
        }
        private void InitializeStatus()
        {
            ViewFrameList = new List <ViewFrame>();

            MeetingMode = MeetingMode.Interaction;

            ViewMode       = ViewMode.Auto;
            FullScreenView = null;

            var count        = 0;
            var participants = _sdkService.GetParticipants();

            if (participants != null)
            {
                count = participants.Count(p => p.m_contactInfo.m_szPhoneId == _sdkService.SelfPhoneId);
            }

            if (count == 0)
            {
                ViewFrameList.Clear();
            }
        }