Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[BUG]: Updated preview system seems to ignore "don't play audio automatically" setting

Open trebnoj opened this issue 1 year ago • 3 comments

Checked for duplicates?

  • [X] This issue is not a duplicate

Does it also happen in the desktop version?

  • [X] This bug does not occur in the latest version of Anki

What are the steps to reproduce this bug?

Create a card with audio, in a deck with the "don't play audio automatically" setting enabled in the deck options. View the card in the newly updated preview system.

Expected behaviour

The audio should not play

Actual behaviour

The audio plays in preview mode, but does not play when actually reviewing the card.

Debug info

AnkiDroid Version = 2.18.2 (f624ca684f2bee10203c67ed4f801aa4c5423b95)

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 13 (SDK 33)

ProductFlavor = play

Manufacturer = Google

Model = Pixel 4a

Hardware = sunfish

Webview User Agent = Mozilla/5.0 (Linux; Android 13; Pixel 4a Build/TQ3A.230805.001.S1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.179 Mobile Safari/537.36

ACRA UUID = 2af5d69b-b468-4f7c-844d-e04a95aae12f

FSRS Enabled = false

Crash Reports Enabled = true

(Optional) Anything else you want to share?

I'm actually using the tts audio tag in my version of the cards, plus some overly complicated JavaScript. I'll be testing a more simplified version of the card once I've submitted this ticket and then report back.

I'm also experiencing other problems with the new preview system, but this is the most straightforward, and I'm hoping that once this is resolved my other problems also disappear. Again, I'm using strange JavaScript code and it will be a pain to have to explain it or rework it!

Research

  • [X] I am reporting a bug specific to AnkiDroid (Android app)
  • [X] I have checked the manual and the FAQ and could not find a solution to my issue
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

trebnoj avatar May 31 '24 23:05 trebnoj

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar May 31 '24 23:05 welcome[bot]

Update: I have confirmed that this is reproducible with a simple mp3 audio file included on the frontside of a card with nothing else. The audio does not autoplay in review mode, but does autoplay in preview mode, regardless of the deck settings.

trebnoj avatar May 31 '24 23:05 trebnoj

Hello I'll pick this up 👋🏻

leobugeja avatar Jun 23 '24 08:06 leobugeja

I know I've not been assigned this issue, but I had allready come up with a solution during discovery so I thought I might as well link the PR.

leobugeja avatar Jul 04 '24 18:07 leobugeja