Help - Search - Members - Calendar
Full Version: Skype4COM.dll and javascript
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
chapest_
My existing web app uses SkypeX to interact with Skype through javascript. Now that SkypeX has been discontinued, can someone point me to some examples of accessing the Skype4COM.dll through client-side javascript? Thanks!
andreskaasik_
To enable the Skype4COM for IE delete the following registry key: HKLMSOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{830690FC-BF2F-47A6-AC2D-330BCB402664}

The following HTML code shows how to use it from IE javascript.

CODE


<html>



//Start Skype using the Skype4COM.Client object method

<body onload="Skype.Client.Start(); Skype.Attach();">



//Load the Skype4COM object

<object classid="clsid:830690fc-bf2f-47a6-ac2d-330bcb402664" name="Skype" width="0" height="0" id="Skype">

<span class="c1">Failed to load Skype4COM control.</span>

</object>



//Here I listen for a change in api status

</script><script language="JavaScript" type="text/JavaScript" for="Skype" event="AttachmentStatus(Status)">



//pop an alert to show that it works

alert('Attachment Status changed to:' + Skype.Convert.AttachmentStatusToText(Status));



</script>



//Here I listen for a change in user status

<script language="JavaScript" type="text/JavaScript" for="Skype" event="UserStatus(Status)">



//pop an alert to show that it works

alert('User Status changed to:' + Skype.Convert.UserStatusToText(Status));



</script>



//Here I listen for a change in call status

<script language="JavaScript" type="text/JavaScript" for="Skype" event="CallStatus(Call, Status)">



//pop the callerid info and call status to show that it works

alert('Caller Id: ' + Call.PartnerHandle);

alert('Call Status: ' + Skype.Convert.CallStatusToText(Status));



</script>

</body>

</html>

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.