示例#1
0
        private void btnParticipantMute_Click(object sender, EventArgs e)
        {
            if (conferenceInProgress != null)
            {
                if (cbParticipantsList.SelectedIndex < conferenceInProgress.Participants.Count)
                {
                    Conference.ConferenceParticipant participant = conferenceInProgress.Participants[cbParticipantsList.SelectedIndex];

                    rainbowBubbles.ConferenceMuteOrUnmutParticipant(conferenceInProgress.Id, participant.Id, !participant.Muted, callback =>
                    {
                        if (callback.Result.Success)
                        {
                            AddStateLine(String.Format("Personal Conference - Mute/Unmute Participant done"));
                        }
                        else
                        {
                            AddStateLine("Pb to Mute/Unmute Participant ...");
                            log.LogDebug("Pb to Mute/Unmute Participant - error:[{0}]", Util.SerializeSdkError(callback.Result));
                        }
                    });
                }
            }
        }