lo-cafe / winston

A beautiful and native Reddit client for iOS
https://winston.cafe/
GNU General Public License v3.0
950 stars 65 forks source link

[FR] Ability to autoplay audio in feeds/subreddits/multireddits without navigating into the post #514

Open jdemph1971 opened 2 months ago

jdemph1971 commented 2 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like As you are scrolling through a Feed/Subreddit/Multireddit, etc I would like the audio for the video to optionally automatically play without needing to navigate into the post. The way Apollo used to do it I think was roughly as follows if memory serves (but I might be misremembering some of the details):

A small "sound" button that sits on the top right of each media post. It looks like the existing "sound" icon that appears when you click into a piece of media that has audio (such that you start actually hearing the audio). I believe this icon is part of the standard iOS media player that comes baked into iOS. The icon should be small enough to not unreasonably obscure the video but the icon (or at least the hit box) needs to be large enough to be tapped reasonably easily.

The button supports being lit up or darkened. If it is lit up that means that specific video actually contains audio. If it is darkened that means that specific video does not contain audio.

The button can have a diagonal line through it or not. If there is a diagonal line that means the user does not want audio to automatically play when viewed in a Feed/Subreddit/Multireddit (this has no affect on if the app should automatically play audio in the Post view). If there is no diagonal line that means the user wants the audio to automatically play when viewed in a Feed/Subreddit/Multireddit (this has no affect on if the app should automatically play audio in the Post view).

This corresponds to 4x states that the button can have:

Having all audio in a Feed/Subreddit/Multireddit (this has no affect on if the app should automatically play audio in the Post view) automatically play enabled (no diagonal line) or disabled (diagonal line) is kept until the user clicks the button to toggle it OR the user fully exits the app (not just switches to another app but leaves Winston running in the background). In other words, this should be a setting that lasts for the session and its default value when launching Winston is set by the settings that appear in the "Settings" tab below.

Currently, under Settings -> Behavior -> Posts there is a toggle named "Autoplay videos (muted)" which seems to let you automatically play videos (but only in the muted state) and it seems to affect both the Post view AND the Feed/Subreddit/Multireedit view. I think this single setting should be extended to support for the following:

Describe alternatives you've considered Right now I click into each post in order to know if the post has audio or not and to be able to actually hear the audio if that post does in fact have audio.

Additional context This is a feature that Apollo had and I believe Narwhal has.

linear[bot] commented 2 months ago

WIN-162 [FR] Ability to autoplay audio in feeds/subreddits/multireddits without navigating into the post