jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
328 stars 45 forks source link

Feature request: keepalive / timeout in forked-daapd.conf #19

Open Max905 opened 14 years ago

Max905 commented 14 years ago

After a certain length of time (30 minutes or so, I think), a DAAP stream will time out. For example, pause a stream playing via Rhythmbox or Banshee. Attempt to resume playback 30 minutes later. It will fail. The only way to resume playback is to disconnect from the DAAP server and reconnect. At that point, the prior playback position has been lost.

Is it possible to add a keepalive or timeout that could be controlled via a parameter in forked-daapd.conf?

pcace commented 12 years ago

Hey, this is really wonderfull! But: Has somebody a working 0.19GCD version with these Patches installed?

is there any chance that someone could compile a 0.19 GCD version of forked-daapd?

Thanks,

Pcace

lpar commented 12 years ago

Yeah, my build dies after a few minutes, so I guess I'm missing a patch. A current working commit reference would be appreciated.

MacLeodMike commented 12 years ago

Here's a build for debian testing: http://www.mmacleod.ca/files/forked-daapd_0.19gcd-2_amd64.deb

And also what I did to make it work: http://www.mmacleod.ca/blog/2012/05/patching-forked-daapd-so-it-actually-works/

Now if only forked-daapd wouldn't disappear as soon as I enable IPv6 on my workstation...

pcace commented 12 years ago

And can you skip in tracks? Is auto database updating working?

Thanks, Pcace

MacLeodMike commented 12 years ago

Huh, I cannot skip in tracks. Dunno about auto updating. All I can say with certainty is that it doesn't disconnect after 5 minuters, which is more than I had before.

ghost commented 12 years ago

Just thought i'd comment and say that using a Raspberry Pi, elwertk's instructions at https://github.com/jasonmc/forked-daapd/issues/19#issuecomment-3331508 fixed the timeout problem. I have ended up with a rather large installed package list and to be honest i'm not sure why my most recent try worked when my previous ones didn't but in the end I got there. I think I am able to skip songs and am unsure about whether it is auto-updating but it will stay connected.

Thanks to all of you for working hard to get this working! And particular thanks to elwertk and CBGoodBuddy! :) Mike

rishighan commented 11 years ago

I had the 5 minute timeout issue myself; running Ubuntu 11.10 Server. After following everything mentioned in https://github.com/jasonmc/forked-daapd/issues/19#issuecomment-3331508 to the letter, iTunes still refused to connect.

Then I removed libevent-2.0.5 and replaced it with libevent-1.4-2 (libevent-core, libevent-dev, libevent-extra), I had to download the .debs from an older version of Ubuntu. This instantly broke transmission-daemon. I use Deluge now.

Then I built against the older libevent and it worked. I think it bears repeating how building against libevent-1.4-2 will save you a lot of grief.

Thanks CBGoodBuddy for your patch!

pcace commented 11 years ago

Hey, i solved the 5 min bug, thanks to @CBGoodBuddy BUT i still cannot skip in every track: only tracks converted with VBR are able to skip... in Mp3s with CBR i cannot skip.

Has anyone an idea how to solve that?

Thanks