Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: No audio for Spotify app

  1. #11
    Join Date
    Jul 2009
    Location
    Nynäshamn, Sweden
    Posts
    121

    Default

    Quote Originally Posted by leXorNet View Post
    I use the great python wrapper for libspotify called pySpotify. I did some modifications to make it run on boxee and added some missing functionallity.
    I downloaded pyspotify and libspotify a couple of days ago but I have no idea
    where to put it in a boxee app and what to do to make it run.

    All the docs talk about various ways of installing it but none seems fitting.
    I.e where do I put libspotify so pyspotify can see it?

  2. #12

    Default

    leXorNet was referring he actually made an app that included libspotify and he modified some of the wrapper elements to get it working. The problem is that spotify api is outputting raw pcm code which should actually be directly run on through some audio hardware. Unfortunately boxee box is not letting us access the direct audio hardware on the box so in fact you need some sort of proxy/streaming server to pass the audio through boxee itself. (might be indeed breaking some dev agreements with spotify).
    Have a look at my repo at www.bartsidee.nl

  3. #13
    Join Date
    Jul 2009
    Location
    Nynäshamn, Sweden
    Posts
    121

    Default

    Quote Originally Posted by bartsidee View Post
    leXorNet was referring he actually made an app that included libspotify and he modified some of the wrapper elements to get it working.
    Yes. What are you trying to say?

    I too have built a spotify app and now I want to modify it to run natively on the box.

  4. #14

    Default

    Quote Originally Posted by rockboxee View Post
    Yes. What are you trying to say?
    I'm just saying that libspotify and the py wrapper are just object based python modules != boxee app. leXorNet has got the playlist searching stuff etc working still not the audio so actually it is not that the api is fully working yet. Also note that libspotify is actually a binary file which has to be compiled for each separate platform (windows/linux/osx)

    Quote Originally Posted by rockboxee View Post
    I too have built a spotify app and now I want to modify it to run natively on the box.
    I have noticed, but that one is based on Servify. Although of course you can use the same gui the backend would be totally different and much more complicated. They got it running on xbmc, but had to made a patch to the xbmc source to get it working right. It is a bit different for boxee though and there are much more limitations for the box. It is a quite something leXorNet has made it this far, but no guarantees it will actually work. The workaround would be to let boxee think it is a regular streaming file/server/host. But the possibility of passing the audio this way native is still very questionable.

    Still if you would help out and have some python skills just send a pm to leXorNet and he might be willing to share the source.
    Last edited by bartsidee; September 6th, 2011 at 10:40 AM.
    Have a look at my repo at www.bartsidee.nl

  5. #15
    Join Date
    Jul 2009
    Location
    Nynäshamn, Sweden
    Posts
    121

    Default

    Quote Originally Posted by bartsidee View Post
    I'm just saying that libspotify and the py wrapper are just object based python modules != boxee app. leXorNet has got the playlist searching stuff etc working still not the audio so actually it is not that the api is fully working yet. Also note that libspotify is actually a binary file which has to be compiled for each separate platform (windows/linux/osx)



    I have noticed, but that one is based on Servify. Although of course you can use the same gui the backend would be totally different and much more complicated. They got it running on xbmc, but had to made a patch to the xbmc source to get it working right. It is a bit different for boxee though and there are much more limitations for the box. It is a quite something leXorNet has made it this far, but no guarantees it will actually work. The workaround would be to let boxee think it is a regular streaming file/server/host. But the possibility of passing the audio this way native is still very questionable.

    Still if you would help out and have some python skills just send a pm to leXorNet and he might be willing to share the source.
    Thanks but you are not telling me anything I didn't already know (apart from the streaming workaround)
    What I'm trying to get at is, let's say I have a working libspotify and pyspotify version that is compiled for the boxee box. How do I package it up in a boxee app and how do I configure stuff so a python backend can access the libraries? All through environment variables? Not sure you can manipulate env vars from a boxee app.

  6. #16

    Default

    pyspotify is a wrapper you can import it just like any other python module, the wrapper takes care of the python<->C communications for the details just ask leXorNet
    Have a look at my repo at www.bartsidee.nl

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •