Cookie CSS

Saturday, June 17, 2017

Skype Web SDK - Part XI

What is the Skype Web SDK?

The Skype Developer Platform for Web ("Skype Web SDK") is a set of JavaScript Web APIs and HTML controls that enable you to build web experiences that seamlessly integrate a wide variety of real-time collaboration models leveraging Skype for Business services and the larger Skype network. It provides support for multiple core collaboration services like presence, chat, audio, and video, enabling web experiences across a broad spectrum of users, platforms, and devices.



Today's Topic : Can you hear me now?

So last week we talked about starting group conversations, and how you can tell if the participants in your conference are muted.  So the logical question it begs... how do I mute myself?

It turns out this is pretty simple, and actually the method for hold/resume is pretty similar.


First Let's Make a Call

var conversationsManager = application.conversationsManager; conversation = conversationsManager.getConversation('sip:xxx'); conversation.selfParticipant.audio.state.when('Connected', function () { // connected to audio }); conversation.participants.added(function (person) { // person.displayName() has joined the conversation }); conversation.state.changed(function (newValue, reason, oldValue) { if (newValue === 'Disconnected' && (oldValue === 'Connected' || oldValue === 'Connecting')) { // conversation ended } }); conversation.audioService.start().then(null, function (error) { // handle error });


Let's Mute

conversation.selfParticipant.audio.isMuted.set(true).then(function () { // successfully muted call }, function (error) { // handle error });


Let's UnMute now.

conversation.selfParticipant.audio.isMuted.set(false).then(function () { // successfully unmuted call }, function (error) { // handle error });



That's it, pretty simple, but very import.  More to come next week.


Doug Routledge, C# Lync, Skype for Business, SQL, Exchange, UC, 
Full Stack Developer  BridgeOC Bridge Operator Console
Twitter - @droutledge @ndbridge
















1 comment:

  1. Good work with the post guys! I must say you have set up quite an information hub here. Keep it coming and keep up the good work. (Y)

    ReplyDelete

Any spam comments will be deleted and your user account will be disabled.