You are here: Startseite Users thomas ness SkypeAPIviaProcessing

SkypeAPIviaProcessing

Tags
Backlinks
» Tags: "SkypeAPIviaProcessing" is tagged as » Backlinks: These Wikipages link to "SkypeAPIviaProcessing"

How to access the Skype API (Application programming interface) via Processing by using the Skype4java library.

Accessing the Skype API via Processing

 

Skype has a public API everyone can Access. (read more about the API and Skype)

This API enables you to do every task or Interaction you can do with in Skype as well from another (self written) program.

In this little tutorial we will show how to access the the API using Processing and the Skype4java library, further more you will find a Example on how to send commands to an Arduino form Processing when a new Message was received in Skype.

Skype4java is a Wrapper Library to access the API for Programs written in Java, like Processing sketches are.    

This library, you can download from the internet, seems to work fine for windows, but we couldn't find a version running on a Mac Intel Computer.

So we downloaded the source of the library and tried to compile a version for intel mac's (32 bit). We also had to do some changes to the code, since the Skype API Protocol seems to have changed over time.

This new compiled library was testet on a MacBook Intel Core Duo. (running: Snow Leopard | Skype 2.8.0.851 | Processing 1.0.9 | Arduino 17)

web_fernsprecher
Webfernsprecher, Prototyp 1

download

  • the Skype API reference here
  • Skype4Java for windows here
  • Skype4Java for intel mac here
  • some examples for Porcessing and Arduino (Mac) here
  • one example for Porcessing (Windows) here

 Note: The Windows example is just one simple example, because we haven't had the time to test it further more. Sorry for that.

 

set up the library (Windows)

 As usually you have to copy the library to your processing sketch folder.

The path should look like something like this

YourProcessingSketchFolder/libraries/skype/library/skype.jar

 

set up the library (Mac)

Setting up the library on a Mac is a little bit more difficult, it seems we have done some mistakes while compiling.

As usually you have to copy the library to your processing sketch folder.
The path should look like something like this

YourProcessingSketchFolder/libraries/skype/library/skype.jar

 

Further more you have to copy the Skype framework to the framework folder on your mac.
you will find the skype.framework folder inside your Skype application packet. Go to the skpye.app file inside your application folder, right click onto the skype.app and select "show packet content", and search inside the packet for the folder skype.framework.

Directly on your hadrive is a folder called Library, in this Library folder is a folder called framework, and in there you need to copy the skype.framework folder. You should really just copy the files, otherwise you screw up your skype application.
The path sould look like:

yourHarddrive/Library/Frameworks/Skype.framework

Note: the library is not 64bit compatible. you have to run Processing in 32bit mode, therefor you need to change your java preference. You will find the java preference under /Applications/Utilities/Java Preferences.app. in the preference you need to set 32bit to the top: like shown in this picture here
 

getting started

First of all you have to start Skype, it always need to be running in the back.

If you added the library to Processing in the right way, you should be able to see the Skype lib in Processing under sketch >> Import Library, if the Skype lib doesn't show up there some thing went wrong with the Import.

(Note: You always need to restart Processing after adding a library)


Now you can start screwing around, try out the different functions and check out the tab example_function to see how the communication between Skype and Processing works.

If you set the Debug boolean to true the library will print some more informations to the console.

If you want to check out the Arduino example, you have to flash your Arduino with the code, you will find in the example folder, and in the processing sketch you need to set the arduinoInUse boolean to true.

(Note: the Arduino example was tested with an Arduino using the FTDI chip for communication, don't know if it is the same with the new boards)


Maybe you should get a new Skype account for your try outs, so you don't mess around with your friends or accidentally delete some one.

last pic

 

 if you want to have the source code to the mac lib or have some questions, feel free to write me: info(attt)tomekness.de
(0 Words, 0 Weblinks, 0 Pictures and 0 Video) - Seite Drucken
Page created by thomas. Last modification on 17.11.2010 16:06
© 2008 Hochschule für Gestaltung, Schwäbisch Gmünd. Impressum
0
» Post-it
jb
17:08, 26.11.2012

Again: Das digitale Klassenzimmer: [link]:article_id=228744

12:27, 31.08.2012

Retweetet diesen Tweet und gewinnt eine von 2 Freikarten für die push.conference in München am 24. Nov. [link]

09:29, 09.07.2012

Praktikumsplatz ab sofort bei schnelle-bunte-bilder in Berlin.
[link]

17:07, 05.06.2012

push.conference ist heute online gegangen. Fixes Studentenkontingent inklusive. [link]

jb
14:03, 07.05.2012

Disney Research's Touché system detects your touch on most things [link]

10:44, 14.02.2012

UX-Designer sind eine der bestbezahltesten IT-Jobs in 2012 [link]

16:13, 08.12.2011

predicting the future of computing [link]

09:35, 09.11.2011

Sehr lesenswerter Artikel zum Thema Touch-Interfaces.

[link]

15:56, 04.11.2011

ERGOSIGN München sucht einen Praktikanten (m/w): [link]

17:40, 27.10.2011

Games, Life & Utopia Conference an der FH Potsdam. Alle sind eingeladen. [link]

08:27, 27.10.2011

Zurück nach Gmünd. Heute um 15:30 mit meinem Vortrag »How to start up a design studio«

jb
14:00, 26.09.2011

Erdbebenwarngerät auf Arduino-Basis:

[link]

11:39, 16.08.2011

decoded conference 2011 wieder in München. 1 Tag. 6 Sprecher. Early Birds mit 15% Studentenrabatt sind noch zu haben [link]

00:27, 04.08.2011

US debt problem visualized [link]

jbo
12:42, 14.07.2011

Complexity vs Complicated — [link]

jbo
09:39, 06.07.2011

Einfache Tweenings in HTML/CSS – [link]

08:49, 04.07.2011

Hmmm. Lots of data waiting to get visualized... [link]

18:04, 17.06.2011

An Infographic about the Anatomy of a Computer Virus
[link]

15:25, 08.06.2011

Nokia Maps Berlin sucht UX-designer/Visual designer als Verstärkung. Go here: [link] and search for RES000001O9

10:46, 07.06.2011

[link] powerful Augmented Reality Picture tracking.