Posts

Showing posts with the label Lync SDK

Mute Unmute Lync SDK

Setting Mute/Unmute State on Lync through Lync SDK: UnMute:                            Conversation conv; //Once you have the conversation, set the unmute on Lync as below.   IDictionary < ModalityTypes , Modality > modalities = conv.Modalities; Modality mod = modalities[ ModalityTypes .AudioVideo]; bool canHold = mod.CanInvoke( ModalityAction .Hold); //Check if we can invoke Hold on the conversation. i f (canHold) mod.BeginSetProperty( ModalityProperty .AVModalityAudioCaptureMute, false ,UnMuteOccured, null );     Mute: Mute is simple as mentioned below.   conv.SelfParticipant.BeginSetMute( true ,MuteOccured, null );       private void UnMuteOccured( IAsyncResult ar){} private void MuteOccured( IAsyncResult ar){}