Bug 452135

Summary: When playing podcast with higher or lower playback rate, adjust time left appropriately.
Product: [Applications] kasts Reporter: Martin Jaime Flores Jr. <martin.flores98>
Component: generalAssignee: bart
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Jaime Flores Jr. 2022-04-01 02:33:20 UTC
SUMMARY
The time left should show an accurate value, regardless of the current playback speed, rather than skipping values.

STEPS TO REPRODUCE
1. Play a podcast in the queue.
2. Modify the playback speed to any value besides x1.

OBSERVED RESULT
Reported time left skips values, e.g., 0:20:00 to 0:19:58 in one second at 2x speed.

EXPECTED RESULT
Time left should be scaled accordingly, e.g., 20 minutes at 1x, 10 minutes at 2x.

ADDITIONAL INFORMATION
An example of this feature can be seen in the MPV program when speeding up and slowing down playback.
Comment 1 bart 2022-06-01 19:09:39 UTC
Git commit e62d17f9b04034885a7fdf36ef604df1d15dc3db by Bart De Vries.
Committed on 01/06/2022 at 19:08.
Pushed by bdevries into branch 'master'.

Adjust time left on episodes according to current playback rate

This new feature is implemented behind a switch in the settings (default
is off).

M  +8    -1    src/audiomanager.cpp
M  +5    -0    src/datamanager.h
M  +12   -1    src/enclosure.cpp
M  +2    -1    src/enclosure.h
M  +7    -1    src/models/queuemodel.cpp
M  +6    -0    src/qml/Settings/GeneralSettingsPage.qml
M  +4    -0    src/settingsmanager.kcfg

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