[POC] Skype VoIP Addon proof of concept
#1
Hello,

After a day of tinkering, I finally imported Skype4Py on xbmc python and I think now it is possible to continue with the actual coding of the addon. Unfortunately the addon is as non-portable as it gets because python 2.4 does not have some libraries that are needed and you have to compile them yourself. I worked on x64 linux so I can only assist on this platform...

Stuff needed:
python 2.4
Skype4Py
dbus-python
pygobject

Everything should be the latest, except pygobject which does not compile under python 2.4 so you have to use an earlier version (I used 2.14)

now:
1. Download python, ./configure with --enable-unicode=ucs4 and make install. This will be installed in /usr/local so it won't wipe your current python installation
2. Download dbus and pygobject and configure and "make install" them. Be sure that python2.4 is the default because if it's not, you will compile them for 2.6
3. take the libraries from /usr/local/lib/python2.4/site-packages/ and install them on xbmc (on your addon or globally on xbmc)
4. build Skype4Py and manually copy it from the build directory to the xbmc installation
5. If everything went well, you can import skype4py and use skype()

Right now xbmc still crashes for no reason if I try to read the friends list or something, but I think I will iron out these things

I will continue developing this addon, but unfortunately I have minimal experience in coding addons on xbmc, so I will need some help and a lot of time to make something useful

Also, I could use some help on where to upload the actual addon so others can play with it
Reply
#2
I am really happy that someone is creating this. I would love to hear any updates you have. I am running windows 7 at the moment on an ION, but more than happy to move over to linux if theres the chance of getting this working.

Are you just looking at audio at the moment, or video as well?
Reply
#3
Thumbs Up 
mjjstorey Wrote:I am really happy that someone is creating this. I would love to hear any updates you have.

+1

Just a few questions though. Why is it not possible to code this in the current version of python to make it more palatable to us noob-again windows converts? Also, once complete, could you not code the nessecary libraries and moves, makes and installs into a single run-once shell script?

I know nothing about python, have no time to learn, nor resources to offer, but i can offer testing help on an Ubuntu Lucid x86.

Keep up the good work knowing that there will be many that will be waiting for something like this to come along..
Reply
#4
anwmalos Wrote:I will continue developing this addon, but unfortunately I have minimal experience in coding addons on xbmc, so I will need some help and a lot of time to make something useful
Awesome!

Consider joining forces (or at least aligning GUI / OSD notifications / look&feel) with eoin, who is developing a Google Talk / Google Video addon
Reply
#5
... also see http://forum.xbmc.org/tags.php?tag=skype and http://www.google.co.uk/search?q=xbmc+skype4py to join forces with other people who've tinkered with this in the past...
Reply
#6
Any developments on this? I was also trying to come up with some Skype integration into XBMC through scripting but I'm getting some problems. The first one is that Skype shouldn't be running when XBMC starts, otherwise XBMC crashes due to an error accessing the sound device (maybe Skype locks it, I don't know...). I was able to send messages and place calls through an XBMC script, however XBMC crashes anytime I call Skype.Friends to get the list of friends. Any idea?

Thanks
Reply
#7
with no log, no info, we can't tell...
Image
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
Reply
#8
Regarding the problem with Skype.Friends, the xbmc.log doesn't report anything strange...XBMC just crashes (Maybe a D-BUS thing?)...

Regarding the sound device, I get the following error:

ALSA lib pcm_dmix.c:1008Sadsnd_pcm_dmix_open) unable to open slave

But I don't think this leads to a XBMC crash.

Thanks
Reply
#9
By the way, I'm using XBMC Live 9.11.
Reply
#10
OK, I found out what was the problem that led to the XBMC crash. The folder where I store the scripts was set with wrong permissions and the .pyo files couldn't be created. At least I suppose that was the problem since now it doesn't crash anymore. The problem I'm facing now is regarding the call window that skype opens whenever I place a new call. I would like to hide it but I can't find a way to do that...

Any suggestion?

Thanks
Reply
#11
This brings up another idea, Google voice anyone?
Reply
#12
I already solved the problem of Skype Windows by programming Fluxbox to send them to a different workspace! I works nice! I can now make audio calls and I'm almost finishing the part of answering incoming calls. Next task is to use video calls. This part is more difficult because there's no way to set the video to fullscreen by using the Public API. Maybe I can use xmacro to do that in the conversation window... I'll try.

Thanks
Reply
#13
hello guys,
Sorry for not answering for some time, I was too busy....

I tried a much more effective way to do this in linux, I compiled the latest code from svn and configured with external python. By doing this it actually uses the system python so the only thing you have to do is install skype4py on the system and everything is nice. Now I have no crashes of xbmc, so it will be a lot easier to have some work done.

Right now I'm just playing around with skype4py, so I don't know how far I can work on this (full integration, video support etc) but the reason I started this thing in the first place is so I can hang a webcam on my TV and call people with my remote Tongue

for anyone interested, this worked in ubuntu 10.10 x64, with latest SVN (downloaded today) and default ubuntu skype client (which I believe is also the latest)

Spulit if you have any work done, I would be glad to hear your experiences so we can work this thing out (maybe upload the code somewhere?)
Reply
#14
anwmalos Wrote:but the reason I started this thing in the first place is so I can hang a webcam on my TV and call people with my remote Tongue

anwmalos - there are quite a few of us on here with the same ambition! Do let us know how you get on with this experiment! I am also on Ubuntu 10.10 and would love to help you in any way I can (although I'm not a python coder...).

Do keep us updated if you make progress toward "sofa to sofa" video calling!
Reply
#15
As I am designing the interface I am wondering about the icons and logos. I saw in the gmail addon that the author used the google logo for it. Is it legal to put the Skype logo or the skype icons in the addon? I can make my own but I would prefer to use the original icons to have the skype look. Does anybody know anything about that?

Btw, I finished audio calling/answering functionality and continue with the gui. I will not add chat functionality because it's pretty hard to chat with a remote.
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
[POC] Skype VoIP Addon proof of concept51