DSub for Android

Alternative Android Client for Subsonic

Moderators: daneren2005, moderators

Re: DSub for Android

Postby ali » Tue Dec 03, 2013 4:28 am

First of all, I want to thank you for the last fantastic couple of updates. I have updated my Play Store review to 5 stars :D

One issue I've discovered on my Nexus 5 is the "Show Downloading" menu item inside the app doesn't work. I can get to the downloads screen via the notification center, but when I hit the menu item in the app, it just changes the title from "Now Playing" to "Downloading". Also, it would be nice to be able to get to the Downloading screen without having to open the Now Playing screen. Maybe it can live in Library and Recently Added and other screens as well?

Another (minor) UI issue I noticed is that the "RC / EQ / VIS" menu that pops up over the album art is not aligned with the album art area perfectly. Basically, the lower ~10% part of it goes past the album art and overlaps the player controls area. Here's a screen shot.
ali
 
Posts: 11
Joined: Mon Dec 27, 2010 6:32 pm

Re: DSub for Android

Postby chrissi323 » Tue Dec 03, 2013 12:37 pm

Hi,

D-Sub has become my daily driver on my Nexus 4, the last updates did make it so much better.

I noticed a little problem which I think is somehow device related. I also have a Samsung Galaxy Note 10.1 2014 Edition. D-Sub runs there as well but can't display some album art. The same album art works fine on my Nexus 4. If I check the albumart.jpg in the cache folder then I can't display it either. It seems to get corupted somehow.

I installed the Sindres orginal subsonic client on the Note 10.1 and the album art shows up.

It's a minor problem but it would be nice if it could be fixed.

Regards

Chrissi
chrissi323
 
Posts: 2
Joined: Sun Jan 29, 2012 8:27 pm

Re: DSub for Android

Postby dirtdigger » Tue Dec 03, 2013 5:16 pm

daneren2005 wrote:You already can define more then 3 servers. I will add putting a different host while on wifi to the todo list, it just won't be a high priority item fyi. It's a very niche case that seems like it is a problem with your router since they are supposed to cache that the redirect is going into the internal server like that.


Thanks for your reply! Maybe I don't understand how it works. Here's how I thought it works. Let's say I'm on my home wifi, which is the same network that my Subsonic server is set up on.

1) I have a dynamic DNS set up, so when I try to connect to my server from the dynamic DNS url, my router contacts my ISP, resolves the remote IP address, and asks for data from the destination IP
2) My ISP fetches the data from the destination (which is my own home internet connection)
3) My ISP then relays that data back to me.

So basically I thought that the music was being streamed to my ISP and back (and that's what I wanted to avoid just to save my internet bandwidth). But, are you saying that, if my router works as it's supposed to, it will automatically detect that the remote IP is actually itself, the destination server is already on my home network, and will do everything over the LAN instead of routing it through my ISP?

If that's the case, then maybe I'm just unintentionally and unnecessarily making my life more difficult by having a local server set up in DSub. Anybody have any insight into this (not just daneren2005)?
dirtdigger
 
Posts: 6
Joined: Wed Nov 27, 2013 3:40 pm

Re: DSub for Android

Postby mr_nobody » Tue Dec 03, 2013 5:50 pm

dirtdigger wrote:
daneren2005 wrote:You already can define more then 3 servers. I will add putting a different host while on wifi to the todo list, it just won't be a high priority item fyi. It's a very niche case that seems like it is a problem with your router since they are supposed to cache that the redirect is going into the internal server like that.


Thanks for your reply! Maybe I don't understand how it works. Here's how I thought it works. Let's say I'm on my home wifi, which is the same network that my Subsonic server is set up on.

1) I have a dynamic DNS set up, so when I try to connect to my server from the dynamic DNS url, my router contacts my ISP, resolves the remote IP address, and asks for data from the destination IP
2) My ISP fetches the data from the destination (which is my own home internet connection)
3) My ISP then relays that data back to me.

So basically I thought that the music was being streamed to my ISP and back (and that's what I wanted to avoid just to save my internet bandwidth). But, are you saying that, if my router works as it's supposed to, it will automatically detect that the remote IP is actually itself, the destination server is already on my home network, and will do everything over the LAN instead of routing it through my ISP?

If that's the case, then maybe I'm just unintentionally and unnecessarily making my life more difficult by having a local server set up in DSub. Anybody have any insight into this (not just daneren2005)?


Any modern nat router will route the traffic locally, not over the internet.
mr_nobody
 
Posts: 202
Joined: Thu May 31, 2012 8:17 pm

Re: DSub for Android

Postby sdct989 » Tue Dec 03, 2013 11:43 pm

What you're talking about is NAT Loop Back or NAT Reflection. While most routers seem to do this now, that is not always the case and there are still quite a few that do not have this functionality. Especially, more of the advanced routers will not do this until you set it up via IPTables (e.g. OpenWRT). It should be relatively easy to figure out if your router is able to do NAT reflection, just by trying to connect to your Subsonic server from your WiFi the same way that you connect to it via 3G/4G. If it works, then your router is working the way that it should you don't need to worry about it taking up your bandwidth.

If your router does not have NAT Loop Back functionality, attempting to access the external IP address from the LAN will cause the packet to be dropped or not routed at all and you'll be unable to connect to the server from the LAN using the same URL that you use from the internet. At that point the only option that you would have available to you would be to setup separate internal DNS which would correctly resolve your-subsonic-server.org to the servers internal IP address when connecting from the LAN. Requests made from the internet would still follow resolve to your public IP address using your public DNS server.

See the following articles on NAT Reflection:
http://en.wikipedia.org/wiki/Network_address_translation#NAT_loopback
http://opensimulator.org/wiki/NAT_Loopback_Routers
User avatar
sdct989
 
Posts: 30
Joined: Thu Jan 31, 2013 4:11 am

Postby gaui » Mon Dec 09, 2013 1:32 am

When I update my offline playlists by going online and permanent caching songs, I always have to do it couple of times so it sticks. This is probably related to because when I update playlists in Subsonic I delete the old one and add it again. Is there any other way?

Sent from my GT-I9300 using Tapatalk
gaui
 
Posts: 42
Joined: Tue May 15, 2012 5:07 am

Postby daneren2005 » Mon Dec 09, 2013 1:34 am

I don't understand. What is it you have to do a few times, and to get what to "stick"

Sent from my HTC One X using Tapatalk
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Re:

Postby gaui » Wed Dec 11, 2013 2:05 am

daneren2005 wrote:I don't understand. What is it you have to do a few times, and to get what to "stick"

Sent from my HTC One X using Tapatalk

I think "Keep Synced" option fixes this.

Sent from my GT-I9300 using Tapatalk
gaui
 
Posts: 42
Joined: Tue May 15, 2012 5:07 am

Re: DSub for Android

Postby dirtdigger » Wed Dec 11, 2013 1:25 pm

sdct989 wrote:What you're talking about is NAT Loop Back or NAT Reflection. While most routers seem to do this now, that is not always the case and there are still quite a few that do not have this functionality. Especially, more of the advanced routers will not do this until you set it up via IPTables (e.g. OpenWRT). It should be relatively easy to figure out if your router is able to do NAT reflection, just by trying to connect to your Subsonic server from your WiFi the same way that you connect to it via 3G/4G. If it works, then your router is working the way that it should you don't need to worry about it taking up your bandwidth.

If your router does not have NAT Loop Back functionality, attempting to access the external IP address from the LAN will cause the packet to be dropped or not routed at all and you'll be unable to connect to the server from the LAN using the same URL that you use from the internet. At that point the only option that you would have available to you would be to setup separate internal DNS which would correctly resolve your-subsonic-server.org to the servers internal IP address when connecting from the LAN. Requests made from the internet would still follow resolve to your public IP address using your public DNS server.

See the following articles on NAT Reflection:
http://en.wikipedia.org/wiki/Network_address_translation#NAT_loopback
http://opensimulator.org/wiki/NAT_Loopback_Routers


Well hey, that's great information. My Linksys apparently does this automatically, but my old DSL router did not! I had the problem of not being able to access the external IP from within the LAN and so I had to have a local and external server in my settings. Whenever I switched to cable internet, I just kept (unnecessarily) using what I already had set up. Thanks for the info :-)
dirtdigger
 
Posts: 6
Joined: Wed Nov 27, 2013 3:40 pm

Re: DSub for Android

Postby isaacq » Tue Dec 24, 2013 2:41 pm

morning! first off, I love dSub, and literally listed it on Facebook (along with subsonic) as one of the 20 best things to happen to me in 2013. :-P

I am noticing one minor issue that I'm not sure others have reported (I only read through the most recent 4 pages here) so apologies if this is a duplicate post.

after the first 2-3 songs of a playlist, the Now Playing screen stops resetting the duration timer at the start of each song.

for example, let's say I was listening to five songs in a row, the duration of which are 1:00, 2:00, 3:00, 4:00 and 5:00.
for the first couple songs, the bottom of the Now Playing screen shows 0:00 on the left, counting upwards, and the right side shows the duration of the current track playing.
when track 3 starts, the right side changes to show the correct duration of 3:00, but the left side keeps counting upwards from where track 2 left off (2:01, 2:02, 2:03 etc). the progress indicator stays at the far right of the scrub bar.
same thing happens with tracks 4 and 5, the timer just keeps counting upwards (from 5:01 and 9:01 respectively).

any idea what's causing this, and if I can fix it by changing an option on my end?
isaacq
 
Posts: 4
Joined: Mon Dec 16, 2013 12:37 am

Re: DSub for Android

Postby eeks » Thu Jan 02, 2014 8:20 pm

Thanks for the great app. The vanilla Subsonic app didn't really work at all -- it would restart every song it had to buffer when it hit the buffering point. Yours is dreamy.

Some requests I had:

The search function needs to show more songs. It seems to show maybe 30, even after I click "Show more," For someone like James Brown or the White Stripes, where I have 100 songs from each, I cannot easily search their music for a song -- I have to have the song in mind. This is very frustrating. There should be no limit to how many more you can show.

Is there a way to make access to the Search function persistent? That is the most useful function within DSub, besides the actual controls to play/pause music and it often requires navigating a few screens to get to. Maybe I'm just misnavigating. I'd love to always have the little Search Icon at the top for how I use DSub, whether I'm on the Recently Played screen, the Recently Added screen, or the Home screen. Maybe others feel similarly.

Sometimes when I add new songs to my queue using Play Next, when that song comes up, the previous next song plays at the same time. I have no idea what causes this. Right now, Concrete & Clay (which I Play Nexted into my queue) is playing while I can hear James Brown's Please Please Please (the former song that was next in the queue) play in the bg.

Sometimes when I select a song (Song Alpha) in the queue, then quickly choose a new song (Song Beta), it won't play. Like no amount of coercion gets it to play unless I choose a new song (Song Chi), which hopefully works, and then I can go and choose Beta and it will play. Can be frustrating when I'm walking in the cold and just want to quickly get to a song and have it work.

Lastly, is there a place where DSub can show me all the songs that are stored locally on my Phone's storage? A perpetual playlist that was always accessible that was just what's on your phone would be useful.

Oh, any and all updates that make playlists more friendly would be appreciated.

But it's worth every penny and I'm grateful for your work.
eeks
 
Posts: 2
Joined: Thu Jan 02, 2014 8:05 pm

Re: DSub for Android

Postby daneren2005 » Thu Jan 02, 2014 9:17 pm

1) If you want to look at a certain artist, I feel you are better off searching for said artist, clicking the artist, then using the Show all media menu option under the overflow menu. This should make it possible for you to search through all their songs more easily. I mean, I can just increase the number of songs returned in the search, but it seems like there is no number I can set it to that someone wouldn't possibly just need it higher. It seems like for that particular use case you are better off just accomplishing the same task in a different way.

2) I'm not going to add it to all menus, simply because many of them are already way too filled as it is. I tried to add it to all of the top level menus, and if I forgot one let me know and I can add it. What I can do for you though, is add it to the pull out menu one. If you notice when you pull out the drawer the menu changes (per Google's advice, though it never made much sense to me). I can add it to that menu since right now it only has exit anyways.

3) Every once in a while someone has said that this happens, and I have personally never seen it. You just gave me another peice of information though, that it happens when you use Play Next. I never use that functionality, so it makes sense that I would never see it. With that additional information I will look over the code and see if I can figure out how to stop that. Now that I know the trigger I should be able to figure it out, thank you. Edit: Yep, with that extra tidbit it wasn't hard to find the source of the problem.

4) Never heard of this before to be honest. I will take a look at it and see if I can figure out why this might be happening. When you get to happen next, mind sending me a log right after? I imagine it's throwing a error, and the order of events in the logs might help me figure out where it is going wrong.

5) You can go into offline mode. You should be able to see only what is on your phone that way. Also, it automatically removes songs from your playlist that aren't downloaded so you can use your playlists like that too.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: DSub for Android

Postby eeks » Fri Jan 03, 2014 2:26 am

daneren2005 wrote:1) If you want to look at a certain artist, I feel you are better off searching for said artist, clicking the artist, then using the Show all media menu option under the overflow menu. This should make it possible for you to search through all their songs more easily. I mean, I can just increase the number of songs returned in the search, but it seems like there is no number I can set it to that someone wouldn't possibly just need it higher. It seems like for that particular use case you are better off just accomplishing the same task in a different way.

2) I'm not going to add it to all menus, simply because many of them are already way too filled as it is. I tried to add it to all of the top level menus, and if I forgot one let me know and I can add it. What I can do for you though, is add it to the pull out menu one. If you notice when you pull out the drawer the menu changes (per Google's advice, though it never made much sense to me). I can add it to that menu since right now it only has exit anyways.

3) Every once in a while someone has said that this happens, and I have personally never seen it. You just gave me another peice of information though, that it happens when you use Play Next. I never use that functionality, so it makes sense that I would never see it. With that additional information I will look over the code and see if I can figure out how to stop that. Now that I know the trigger I should be able to figure it out, thank you. Edit: Yep, with that extra tidbit it wasn't hard to find the source of the problem.

4) Never heard of this before to be honest. I will take a look at it and see if I can figure out why this might be happening. When you get to happen next, mind sending me a log right after? I imagine it's throwing a error, and the order of events in the logs might help me figure out where it is going wrong.

5) You can go into offline mode. You should be able to see only what is on your phone that way. Also, it automatically removes songs from your playlist that aren't downloaded so you can use your playlists like that too.


1) I didn't even know the Show All Media option existed in the overflow menu! That should solve all issues and does for the White Stripes. But when I search James Brown, choose the artist, choose Show All Media, it still just shows one album, while I know I have 15 albums where he is tagged as the artist. Same thing with the Black Keys (it doesn't even list "The Black Keys" as an artist option, just "Black Keys", but all my mp3s are tagged "The Black Keys.") -- it shows 3 albums when I select artist and choose show all media, not the 10 albums I have. I assume same thing with other, too. All my tags should be pretty consistent, I use Bliss.

2) The Queue menu! That's probably where it's most useful and not there. Also if pressing Shuffle just would shuffle play the playlist rather than reorder it, it would probably be better and more consistent with expectations.

5) Offline mode shows nothing for me, which is why I assumed it didn't work. My only option then from that screen is to use Search, which when I search for anything I get a Null Pointer Exception. When I got to Library, I see some things that are on my phone, ordered almost randomly by folder name, some with a higher level folder, some with their direct folder. Library would be an easier view if sorted by ID3 tag not folder structure. When I go to playlist and play one that has all songs that are all downloaded, it plays some songs, chokes and stops playing on other songs (I sent a log where it wouldn't play Midnight City despite it having been downloaded). Offline mode is somewhat unpredictable.

And 8) it would be nice if just playing a song didn't clear the queue. I don't know, I prefer my queue not being erased unless I actively choose to do so, it's easy to accidently clear your queue with a missed button touch which is easy to do on a phone. But that could just be how I use things.


Thanks for the quick response!
eeks
 
Posts: 2
Joined: Thu Jan 02, 2014 8:05 pm

Re: DSub for Android

Postby wolfdown » Sun Jan 05, 2014 3:32 am

Is there a way to quickly queue all songs in a genre? It seems the default is to only queue the first 20 songs.

In the library, view it will queue ever song in the folder. I was hoping the genre search could work the same way?
wolfdown
 
Posts: 10
Joined: Sun Jan 05, 2014 3:25 am

Re: DSub for Android

Postby daneren2005 » Wed Jan 08, 2014 1:25 am

eeks wrote:1) I didn't even know the Show All Media option existed in the overflow menu! That should solve all issues and does for the White Stripes. But when I search James Brown, choose the artist, choose Show All Media, it still just shows one album, while I know I have 15 albums where he is tagged as the artist. Same thing with the Black Keys (it doesn't even list "The Black Keys" as an artist option, just "Black Keys", but all my mp3s are tagged "The Black Keys.") -- it shows 3 albums when I select artist and choose show all media, not the 10 albums I have. I assume same thing with other, too. All my tags should be pretty consistent, I use Bliss.

2) The Queue menu! That's probably where it's most useful and not there. Also if pressing Shuffle just would shuffle play the playlist rather than reorder it, it would probably be better and more consistent with expectations.

5) Offline mode shows nothing for me, which is why I assumed it didn't work. My only option then from that screen is to use Search, which when I search for anything I get a Null Pointer Exception. When I got to Library, I see some things that are on my phone, ordered almost randomly by folder name, some with a higher level folder, some with their direct folder. Library would be an easier view if sorted by ID3 tag not folder structure. When I go to playlist and play one that has all songs that are all downloaded, it plays some songs, chokes and stops playing on other songs (I sent a log where it wouldn't play Midnight City despite it having been downloaded). Offline mode is somewhat unpredictable.

And 8) it would be nice if just playing a song didn't clear the queue. I don't know, I prefer my queue not being erased unless I actively choose to do so, it's easy to accidently clear your queue with a missed button touch which is easy to do on a phone. But that could just be how I use things.


Thanks for the quick response!

1) My guess is that is because you only have those 3 albums under the folder named after the artist. The default method to organize everything in Subsonic used to be by folders, and when the server developer changed the web interface to mostly work off of tags, he left the mobile clients to still use the old folder based approach. He added new API's to browse by tags that I plan to add, but right now everything DSub (and Subsonic for Android) does is based off of the folder structure. Adding support for them is my next major todo list feature. I'll probably start work on it shortly after I get the next minor release out.

5) I replied to your email, we can take the rest of the offline playback issues up there as it is definitely not normal for offline songs to just not work. As for the search throwing a error, can you send me a log after it happens? NPE are usually pretty easy to fix once I know the cause.

wolfdown wrote:Is there a way to quickly queue all songs in a genre? It seems the default is to only queue the first 20 songs.

In the library, view it will queue ever song in the folder. I was hoping the genre search could work the same way?

Not currently. My gut feeling is that there is probably a better way to accomplish whatever you want to accomplish with that though. The problem is that it is impossible for me to tell at display time how many songs might be in that genre. It could be a thousand, which will probably be fairly slow just to load the list. If all you want is to continually play songs by a certain genre, you are probably better off using Shuffle -> select whichever genre you want to shuffle by.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

PreviousNext

Return to DSub for Android

Who is online

Users browsing this forum: No registered users and 12 guests