subsonic-android with bookmark support

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

subsonic-android with bookmark support

Postby halfmoonboy » Tue May 31, 2011 6:18 am

This is my first post on this forum. Can anybody enlighten me about where developer threads should be posted? Are there subdivisions for different clients? I tried in General, but I think this is the right place for it.

I am hacking on the subsonic-android client, and I have implemented very basic support for bookmarking. What I mean is that I can set a bookmark, play something else, such as a different album or playlist, and then return to the bookmarked song list at the recorded track number and position. I have this working now, although there are probably still bugs. We'll see.

Here is my use-case:

I listen to audio books a lot. Sometimes I just want to listen to music instead. So, I set a bookmark in my audio book and then load up the music I want to listen to. When I am ready to do some more "reading", I simply return to the bookmark that I had previously set.

Therefore, I need exactly one bookmark at any given time. I do not need to have a list of named bookmarks nor a stack of unnamed bookmarks.

When I originally started on this, I thought I would try to annotate the playlist with the track index and position and to automatically remember this information whenever switching away from a playlist. That's probably doable, but I think the server would also need to be modified. It'd be cool to be able to switch clients and retain this information, but I don't think playlists are designed with this idea in mind.

I would love to get this into the upstream, and maybe Sindre and other developers would be willing to give me some feedback.

Download APK
Download source code patch against SVN r2333
halfmoonboy
 
Posts: 3
Joined: Sun May 29, 2011 6:40 am

Postby halfmoonboy » Mon Jun 06, 2011 5:30 am

I am currently not saving (serializing) the bookmark object, so it does not survive if the application is killed and restarted. Obviously, I need to fix this problem. I will post an update when I figure it out.
halfmoonboy
 
Posts: 3
Joined: Sun May 29, 2011 6:40 am

Postby Luterin » Sat Jul 02, 2011 12:13 pm

Hows it going with this? I'd really want a feature like this because I also listen to alot of Audiobooks, and it's very anoying that the "original" Android client sometimes clears its playlist and where it stopped.

Thanks for your effort anyway and hope you will get it right or that Sindre implements it in the normal version!
Luterin
 
Posts: 25
Joined: Thu Jun 03, 2010 6:28 pm


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 9 guests