|
|
2011-03-09
, 08:02
|
|
Posts: 564 |
Thanked: 693 times |
Joined on Apr 2010
|
#502
|
It does require some hacking it seems. libopenspotify is made after APIv4 specs and libspotify uses v7, and it doesn't support 96kbps. With some hacking I managed to compile qspot against libspotify but I didn't get it to actually work. If run as root it jammed at "connected to AP:" and if run as user it segfaulted. It was most likely my ugly hacks that caused the issues though. I had some warnings.
Aside from changeing #include <spotify/api.h> to #include <libspotify/api.h> and the .pro file, the main problems were the session bits that mostly return void in v7 where they kindly returned sp_error in v4. I just put whatever_error = SP_ERROR_OK;
sp_session_something()
instead of whatever_error = sp_session_something()
Also, turns out sp_session_init is now sp_session_create.
worked for that.Code:#if SPOTIFY_API_VERSION > 4 sp_session_create(&m_config, &m_session); #else sp_session_init(&m_config, &m_session); #endif
But as I said, it didn't actually work. But it compiled. Now zzz.
So I have a QSpot ready version that can be used with the official lib in case the terms of usage will allow it at some point (hopefully)..
Quite a lot of changes were required as you stated due to libopenspotify using api version 4, while libspotify is already at version 7. In case the official library can be used, then we can add support directly for e.g., playlist management (creation / editing), starring tracks, playlist folders, caching of tracks etc.
|
|
2011-03-16
, 12:45
|
|
|
Posts: 40 |
Thanked: 86 times |
Joined on Dec 2009
@ Sweden
|
#503
|
|
|
2011-03-16
, 16:48
|
|
Posts: 564 |
Thanked: 693 times |
Joined on Apr 2010
|
#504
|
This is a really great and necessary application (stort tack)
One thing that I do miss however is possibility to control playback with bluetooth headphone buttons (play/pause, prev, next). Is this possible to implement?
I have actually planned to add support for bluetooth headsets to a future QSpot version. It should be possible to implement without any major problems.
| The Following User Says Thank You to aenbacka For This Useful Post: | ||
|
|
2011-03-21
, 18:16
|
|
Posts: 1 |
Thanked: 0 times |
Joined on Mar 2011
@ Sweden
|
#505
|
|
|
2011-03-21
, 18:32
|
|
|
Posts: 230 |
Thanked: 185 times |
Joined on Jul 2010
@ Sweden
|
#506
|
|
|
2011-03-27
, 14:11
|
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#507
|
In addition to this, it should also be possible to change the playback volume when the device is locked, which has been a requested feature.

| The Following User Says Thank You to For This Useful Post: | ||
|
|
2011-03-27
, 18:00
|
|
Posts: 564 |
Thanked: 693 times |
Joined on Apr 2010
|
#508
|
Hi.
Thanks for this great application, it really is easy to use and works just fine. I've noticed some small annoyances though (ver. 0.8.1-1), which areOther than that I've had no issues with the functionality of the QSpot. Too bad though, that we can't have offline-playback, but that's up to Spotify to add it to the API, am I right?
- You can't exchange the bitrate once you've logged in
- Disconnection causes buffering to stop, even though it still claims to buffer. Re-connecting to the network doesn't fix this.
- Volume-button doesn't work when the device is locked
- Pressing the power-button causes a small skipping in the song, approx. 1-2 s.
Other than that keep up the good work. I'm on the limited 7 days Premium-trial and most likely won't be using Premium after that. If the situation does change and there would be a new version of QSpot I'd be happy to test it, since I'm already testing the Community SSU as well.
I am planning a new update in the near future (hopefully during next week) which will address some of the issues (e.g., such as possibility to control the volume when the device is locked). I am also investigating the disconnection problem, I hope to implement a fix for this as soon as possible (the problem is due to being disconnected from the Spotify backend service, in which case a re-authentication is necessary). I have not noticed the issue with pressing the power button before you mentioned it, I will need to look into what could be the cause of that.
Still it will be interesting to see if we could utilize the official libspotify library in case Spotify makes changes to the current usage terms.
|
|
2011-03-27
, 18:41
|
|
Posts: 55 |
Thanked: 17 times |
Joined on Mar 2011
@ Finland
|
#509
|
I noticed the same thing when I pressed the power button: a 1-2 second pause appeared. The app works greatly, it is fast and smooth, atleast in my opinion. I have tried every other spotift clients for maemo but this is the best.
Offline playlists would be awesome but maybe some day if Spotify gives permission.
| The Following User Says Thank You to joonne For This Useful Post: | ||
|
|
2011-03-27
, 19:34
|
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#510
|
One more thing though, which I forgot to mention : pause playback when removing headset. Alternatively pausing and disconnecting would be nice as an option to save some battery.
![]() |
| Tags |
| premium account, spotify |
|
Aside from changeing #include <spotify/api.h> to #include <libspotify/api.h> and the .pro file, the main problems were the session bits that mostly return void in v7 where they kindly returned sp_error in v4. I just put whatever_error = SP_ERROR_OK;
sp_session_something()
instead of whatever_error = sp_session_something()
Also, turns out sp_session_init is now sp_session_create.
#if SPOTIFY_API_VERSION > 4 sp_session_create(&m_config, &m_session); #else sp_session_init(&m_config, &m_session); #endifBut as I said, it didn't actually work. But it compiled. Now zzz.
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One
Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.