Block attendees video in Lync 2013 conference

359 views Asked by At

I am trying to create a Lync-Meeting programmatically using UCMA/Lync SDK. While the creation of a conference is pretty straight forward, it is one of my requirements to disable/block the video broadcast of the attendees by default. This can easily be achieved by using the UI (see "Do you want to limit participation?") But how can I do this using code?

Thanks a lot!

3

There are 3 answers

0
Shane Powell On

From the Lync Client Sdk you can toggle the conference "attendee video mute" by setting the ConversationProperty.ConferenceVideoHardMute on the Conversation instance.

Can example of settings the property where "value" is either true/false, where true == mute attendee video and false == unmute attendee video.

if (_conversation != null &&
    _conversation.CanSetProperty(ConversationProperty.ConferenceVideoHardMute))
{
    _conversation.BeginSetProperty(ConversationProperty.ConferenceVideoHardMute, value, ar =>
    {
        if (ar.IsCompleted)
        {
            try
            {
                _conversation.EndSetProperty(ar);
            }
            catch (Exception exception)
            {
                 // exception handling
            }
        }
    }, null);
}

or if you prefer a Task based version:

Task.Factory.FromAsync(_conversation.BeginSetProperty(ConversationProperty.ConferenceVideoHardMute, value, null, null), ar => _conversation.EndSetProperty(ar));
0
user3581073 On

you can not Block video Without Audio. this meaning if dont add McuType.AudioVideo in conference schedule information object then that conference wont have audio and video for all participants. for your question: should view CsConferencingPolicy

0
w5l On

I'm assuming you're scheduling a conference and not creating one ad-hoc, since your link says:

When you’re scheduling your Skype for Business (Lync) Meetings, you can use the default options, which are appropriate for small and casual meetings with coworkers.

When you schedule a conference through UCMA, you pass it an object of type ConferenceScheduleInformation. This has a property Mcus which controls the allowed MCUs for your conference.

info.Mcus.Add(new ConferenceMcuInformation(McuType.ApplicationSharing));
info.Mcus.Add(new ConferenceMcuInformation(McuType.InstantMessaging));
info.Mcus.Add(new ConferenceMcuInformation(McuType.AudioVideo));
info.Mcus.Add(new ConferenceMcuInformation(McuType.Meeting));
... etc ...

This allows you to control what MCUs are available.