Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.68k stars 66 forks source link

[Bug] Internet Radio do not resume after waking up from sleep/hibernation (Kubuntu 21.04) #538

Open GLLM opened 3 years ago

GLLM commented 3 years ago

Hello !

I'm using Kubuntu 21.04 with Tauon MB 6.6.0 (flatpak)

After the system wakes up from sleep/hibernation, and because the network halted during sleep, the Internet Radio play does not resume playing. When a normal playlist (local files) was suspended because of sleep/hibernation, when the system wakes up, the playback resumes normally.

I think it should work the same with internet radios.

Thanks GLLM

Taiko2k commented 3 years ago

It's actually intended that audio stops on sleep, so it not doing that is more the bug. (Though it is likely the loss of connection causing radio to stop in this case)

GLLM commented 3 years ago

Hi @Taiko2k, so it's intended the play does not restart after waking up from sleep ? Why this difference between local files and webstreams, if I may ?

Thanks GLLM

Taiko2k commented 3 years ago

so it's intended the play does not restart after waking up from sleep

Yeah, it was the idea

Why this difference between local files and webstreams, if I may ?

It seems to be not detecting that there was a system suspend. But webstreams will always stop when the connection gets interrupted anyway.

GLLM commented 3 years ago

It seems to be not detecting that there was a system suspend. But webstreams will always stop when the connection gets interrupted anyway.

Oh !! no retry at all ? It would be lovely to have this tho, like with a setting : retry x times if stream fails. A simple wifi issue, or foot in the RJ45 cable and voilà .... no music anymore ! :-/ I think a lot of music player have a webstream retry mecanism.

Thanks GLLM

GLLM commented 2 years ago

Still hoping for this one ... Which bothers me on a daily basis (true).

Edit: cannot do that. (I'll try setting a bigger cache for network radio, if I can)

FingersCrossed

Taiko2k commented 2 years ago

Okay, I've now committed a new option called Resume from suspend under Settings > Function > Page 4. This is set to off by default.

Once you upgrade, let me know if that's working for you.

Btw yeah, that cache setting has no effect on the radio. Note that Tauon does not support pausing while continuing to buffer the stream. Its either playing (near) live or stopped.

GLLM commented 2 years ago

@Taiko2k many thanks. Will test as soon as I get a version with the fix :+1: