Android client restarts entire song every time it buffers

Need help? Post your questions here.

Moderator: moderators

Android client restarts entire song every time it buffers

Postby lavacano201014 » Thu Aug 11, 2016 7:55 pm

I run a Subsonic server on a VPS, and through a chain of networking bodge jobs which I won't go into detail about, the VPS pulls files directly from my home computer. (I'm not using the "username.subsonic.org" feature because I don't feel comfortable with DNS records pointing directly to my home network) Subsonic retrieves the files just fine, transcodes them fine, and pushes them out to the Android client fine, except that every once in a while, if I haven't been preloading songs, it has to stop to buffer for a few milliseconds before it can keep going.

This is where my problem shows up. See, with every other music service out there, if the player has to stop and buffer, it stops and buffers, then picks up where it left off, or possibly rewinds by a second or two. Subsonic, on the other hand, chooses to rewind all the way back to the beginning of the song, even if I was almost at the end of it. This problem will probably sort itself when I get around to actually setting up playlists later, since preloading mitigates the need to buffer, but I'd still rather not have this problem in the first place.

No player settings have been modified on the Subsonic server. The only setting changed in the Android app (besides server details) is I put a bitrate cap on mobile networks so I don't chew through my data plan.
lavacano201014
 
Posts: 1
Joined: Thu Aug 11, 2016 7:41 pm

Re: Android client restarts entire song every time it buffer

Postby acroyear » Thu Aug 11, 2016 8:59 pm

"username.subsonic.org" feature because I don't feel comfortable with DNS records pointing directly to my home network


It doesn't work that way, because that wouldn't correctly forward over to the right port (going from 80 at subsonic to 4040 or whatever back at your home).

Instead, every request to subsonic.org is given a 302 redirect to the IP+port it has determined is the right one. So it is safer from that regard...but a little more inefficient (and causes weird errors with the html5 audio tag in firefox because of how the duration is calculated for CBR files, but nevermind that...). I don't bother to use it, myself, because my work firewall doesn't always deal with those redirects cleanly.

Regarding the Android issue, I've never seen that happen before, but I rarely use limited bandwidth (Sprint's still unlimited). I may test it out. I do get that 'pause' for an instant when the file is fully loaded, but I attribute that generally to the disk flushing the buffer and committing the file out of streams memory, but it has never restarted on me in that situation.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA


Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests