I copied it from the jukebox example delivered with libspotify, I guess you did the same. I only patched the OpenAL part because pausing in OSX did not work and added a method to track the current second.
Otherwise I must admit I don't really understand how that part works and I am very happy the Spotify guys packed a fully working example with their lib... On Friday, November 8, 2013 1:41:29 PM UTC+1, Floby wrote: > > Hello, very interesting stuff you've got here. > > I don't quite grasp how you are handly music delivery. It looks to me it's > very similar to how node-libspotify handles it. > > On Wednesday, 6 November 2013 22:04:21 UTC+1, Moritz Schulze wrote: >> >> Hi! >> Since January 2013 I have been working on node-spotify, a wrapper for >> libspotify in node.js (thus a native module) that aims at a coherent, easy >> interface. >> >> I have seen that Floby has started a similar project around the same >> time, so you can choose between us two. I think node-libspotifys interface >> is somewhat nearer to libspotify itself than mine. >> >> You can find node-spotify in npm, at github and on my page (precompiled >> module for OSX and an API documentation is available there). To use it >> libspotify must be installed and you need a premium account and appkey from >> Spotify. >> >> Github: https://github.com/FrontierPsychiatrist/node-spotify >> npm: https://npmjs.org/package/node-spotify >> My page: http://www.node-spotify.com/ >> >> I'm near finishing version 0.4.0 which includes artist and album browsing >> and creation of objects from links. >> >> If you have trouble starting my suggestion is to create the module, >> login, wait a few seconds and then logout (doing nothing in between). This >> will save the spotify caches to disk and the objects will be available >> sooner next time. I hope to improve this in further versions. >> >> I also think that node-spotify is one of the larger native modules out >> there, so you can have a look around at how I structured the code. I think >> the implementation of the spotify loop is particulary interesting, I >> switched it from a separate thread to libuv a few commits ago. Find it in >> SessionCallbacks.cc and compare it to SpotifyService.cc (in old revisions, >> it is deleted now). >> >> If you find bugs or have improvement suggestions please contact me. >> >> Have fun with node-spotify! >> >> Moritz >> > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
