Bug 443400 - Feature Request - Add Sleep Timer
Summary: Feature Request - Add Sleep Timer
Status: RESOLVED FIXED
Alias: None
Product: kasts
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Flatpak Linux
: NOR wishlist
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-06 14:18 UTC by theologymatters
Modified: 2022-06-30 08:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description theologymatters 2021-10-06 14:18:51 UTC
Hi there,

I've install Kasts as a Flatpak on my Librem 5 running PureOS. It's a fantastic Podcast app! The only feature I use regularly that I don't see here is a sleep timer to stop playback after a specified time period. I thought I would come here to suggest this feature.

Please let me know if I need to provide any more information, etc.
Comment 1 bart 2021-10-06 14:24:12 UTC
Glad you like the app.

I don't use such a feature myself.  So I'll probably need to look around how it's implemented elsewhere.

How is the timer started?  Is it started manually and does it keep counting down once it's started?  Or is the timer always active and reset by user activity (play/stop/skipping)?
Comment 2 theologymatters 2021-10-07 14:52:43 UTC
(In reply to bart from comment #1)
> Glad you like the app.
> 
> I don't use such a feature myself.  So I'll probably need to look around how
> it's implemented elsewhere.
> 
> How is the timer started?  Is it started manually and does it keep counting
> down once it's started?  Or is the timer always active and reset by user
> activity (play/stop/skipping)?

Sure, I can describe the experience on iOS, I'm trying to replace a dying iPod Touch. The timer is started manually by the user and set to some value (e.g. 30 minutes), and the timer is paused when playback is paused. 

Currently, I'm using AntennaPod out of FDroid, that would be at least one place to look at an implementation. https://github.com/AntennaPod/AntennaPod
Comment 3 bart 2022-06-20 19:32:43 UTC
I'm working on this now.  Here's the merge request if you would care to check and/or comment:
https://invent.kde.org/plasma-mobile/kasts/-/merge_requests/72
Comment 4 bart 2022-06-30 08:21:13 UTC
Git commit 5f94b4a357e5803a42b7a654c3073dd0f481cb35 by Bart De Vries.
Committed on 30/06/2022 at 08:21.
Pushed by bdevries into branch 'master'.

Add sleep timer

M  +1    -0    src/CMakeLists.txt
M  +74   -0    src/audiomanager.cpp
M  +13   -55   src/audiomanager.h
M  +17   -2    src/qml/HeaderBar.qml
M  +18   -0    src/qml/PlayerControls.qml
A  +96   -0    src/qml/SleepTimerDialog.qml     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
M  +4    -0    src/qml/main.qml
M  +1    -0    src/resources.qrc
M  +22   -0    src/settingsmanager.kcfg

https://invent.kde.org/plasma-mobile/kasts/commit/5f94b4a357e5803a42b7a654c3073dd0f481cb35