einmalfel / PodListen

Minimalistic android podcast application
63 stars 24 forks source link

Feature request: playback speed control #9

Open bugmenot2 opened 9 years ago

bugmenot2 commented 9 years ago

I'm used to listening to tech talks sped up. Additionally, my commute is short, and I'd like to consume my podcasts in a shorter amount of time. This feature will not affect the minimality of the interface if you put it in the settings and/or activate it with a long press of the play/pause button, and should be easy to implement. If you decide to implement it, I suggest a slider with min/max corresponding to that on youtube videos (0.25x to 2x). Thank you for the consideration.

einmalfel commented 8 years ago

@bugmenot2 API for speed control is available in Android 6.0+ For earlier versions there are third-party plugins (BeyondPod did and AntennaPod do rely on them for speed control) that provide this functionality. User will need to install such plugin separately from app and it doesn't seem those plugins are very stable, that's why I'm not sure I want to use them.

bugmenot2 commented 8 years ago

i have v4 and my default player has playback speed control. i'm talking from webdev experience here and i have none with android so this may sound funny, but can you test for the feature and enable it if present? or maybe include the default player as a component?

einmalfel commented 8 years ago

@bugmenot2 Regarding "test and enable" - I doubt this will work for older Android versions (but I'll double check it to be sure).

Regarding using default player - I'm planning to add long-tap menu for episodes, and there will be an option "Play in external player". This means PodListen will not use it as plugin, it just will launch another player app to play episode media file. Will this solve the issue for you?

bugmenot2 commented 8 years ago

I'd be happier if it were possible to use the built in player which i like using as a widget and having it track where i am in the file. That said I'd live with the call to the system player at least for a while. I owe you that much loyalty(might bug you for human readable filenames in that case though, as well as deletion detection if that's not yet implemented)

einmalfel commented 8 years ago

I've got an idea how to make simple and portable implementation of this feature (w/o third party components) by changing audio sampling rate - this means that 1.5x speed increase will make it sound ~4 tones higher. What do you think, @bugmenot2 ? do you care about sound pitch?

bugmenot2 commented 8 years ago

seems like you've given the feature thought so i trust that there really isnt any better solution (short of hacks or rewriting the app as a hybrid web app) so yeah i would be satisfied by this approach. who knows perhaps it even makes things more audible elevating speech a few octaves above the vehicle noise.

bugmenot2 commented 8 years ago

Please do this one. My backlog is growing