Exemplo n.º 1
0
        private string[] query(string conference, string address, string port)
        {
            ConferenceRoomManagement crm = new ConferenceRoomManagement(conference, address, port);

            var lst = crm.GetConferenceRoomUserList().Select(x => $"{x.UserCode}\t{x.UserId}\t{x.AudioStatus}\t{x.IsPrimarySpeaker}");

            return(lst.ToArray());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 全部成员允许说话
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCancelMuteAll_Click(object sender, EventArgs e)
        {
            ConferenceRoomManagement crm = new ConferenceRoomManagement(txtConference.Text, txtAddress.Text, txtPort.Text);

            if (!crm.IsExistConferenceRoom())
            {
                MessageBox.Show("会议室不存在!");
                return;
            }
            foreach (var usr in crm.GetConferenceRoomUserList())
            {
                if (!crm.UnmuteConferenceUser(usr.UserCode, out string errorMessage))
                {
                    //MessageBox.Show("设置失败!");
                }
            }
        }
Exemplo n.º 3
0
        private void btnCancelMute_Click(object sender, EventArgs e)
        {
            ConferenceRoomManagement crm = new ConferenceRoomManagement(txtConference.Text, txtAddress.Text, txtPort.Text);

            if (!crm.IsExistConferenceRoom())
            {
                MessageBox.Show("会议室不存在!");
                return;
            }

            var oldList = crm.GetConferenceRoomUserList();

            var item = oldList.FirstOrDefault(x => x.UserCode == txtUserCode.Text);

            if (item != null && item.AudioStatus == EnumAudioStatus.Mute)
            {
                if (!crm.UnmuteConferenceUser(item.UserCode, out string errorMessage))
                {
                    MessageBox.Show("设置失败!");
                }
            }
        }