Cookie CSS

Saturday, June 24, 2017

Skype Web SDK - Part XII


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 : Please hold.

Being able to put a call on hold is a must.  You don't want the caller to hear you fumble around for something on your desk, or have an awkward silence while you are searching for information.  Hold/Resume in the Skype Web SDK is a little different.  By default if you have 2 audio calls come in and you answer them, neither of them is on hold.  It's up to you to manage all of this, so it's very important that you understand how to do so.  When dealing with hold/resume you do this on the selfParticipant object, which seems odd, since you'd think you'd execute it on the participant instead of yourself.  Here is what it looks like.


function holdResumeCall() { var selfParticipant = conversation.selfParticipant; var audio = selfParticipant.audio; var onHold = audio.isOnHold(); if (!onHold) { // Put call on hold audio.isOnHold.set(true).then(function () { // Call successfully held }, function (error) { // Error holding call }); } else { // Resume call that was on hold audio.isOnHold.set(false).then(function () { // Call successfully resumed }, function (error) { // Error resuming call }); } }


That's it.  It's pretty simple to set, but an extremely important function to understand for successful audio call handling.

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















No comments:

Post a Comment

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