anki/qt/aqt
Andreas Reis 54f51da944 Allow <audio> to play without user interaction in accordance to autoplay setting
Since 2018, Chromium by default requires at least one user interaction with a page in order for sound to play. That's not what an Anki user expects.

So this commit undoes this by setting the policy accordingly if the deck's settings have autoplay set, so that files in <audio> tags (if they further have the autoplay attribute set / are jscripted accordingly) are treated the same as ones in [sound:…] elements. OFC, it's obviously not a good idea to mix both on one card.

(AnkiDroid's WebView has already been unconditionally ignoring the requirement since forever.)
2020-11-10 14:53:45 +01:00
..
__init__.py remove never used link 2020-10-10 00:07:34 +08:00
.gitignore basic night mode support 2020-01-23 17:27:07 +10:00
about.py add Gustavo Costa 2020-10-06 14:36:11 +10:00
addcards.py fix help url paths 2020-10-10 00:38:07 +08:00
addons.py update to latest black 2020-08-31 13:29:28 +10:00
browser.py Merge pull request #782 from johan456789/patch-1 2020-10-12 12:15:46 +10:00
clayout.py Allow <audio> to play without user interaction in accordance to autoplay setting 2020-11-10 14:53:45 +01:00
customstudy.py rebuild_filtered_deck() and new_filtered() 2020-09-03 18:02:47 +10:00
dbcheck.py formatting 2020-06-09 14:07:39 +10:00
deckbrowser.py fix import shortcut 2020-09-27 11:57:12 +10:00
deckchooser.py Remove useless variables 2020-07-17 08:38:48 +02:00
deckconf.py fix help url paths 2020-10-10 00:38:07 +08:00
dyndeckconf.py fix help url paths 2020-10-10 00:38:07 +08:00
editcurrent.py Create ResetReason enum 2020-08-16 18:56:32 +02:00
editor.py cleanup / renames 2020-11-10 14:53:04 +01:00
emptycards.py make sure to reset after deleting empty cards 2020-08-09 12:42:58 +10:00
errors.py Add type hints to errors 2020-07-24 11:20:54 -06:00
exporting.py update to latest black 2020-08-31 13:29:28 +10:00
fields.py Merge pull request #790 from hgiesel/fields 2020-10-12 12:36:39 +10:00
gui_hooks.py Add fields_did_rename_field and fields_did_remove_field hooks 2020-10-11 19:16:30 +02:00
importing.py fixes for latest mypy 2020-10-10 19:02:59 +10:00
legacy.py use keyword args for calls with more than one argument 2020-05-24 09:12:47 +10:00
main.py cleanup / renames 2020-11-10 14:53:04 +01:00
mediacheck.py rework progress handling 2020-06-01 13:57:10 +10:00
mediasrv.py formatting fixes for latest black 2020-09-01 10:24:38 +10:00
mediasync.py Scroll media sync log to the last line 2020-07-13 03:06:44 +03:00
modelchooser.py Escape ampersands in note type names too 2020-10-07 15:26:32 +03:00
models.py formatting fixes 2020-10-12 12:17:02 +10:00
mpv.py update to latest black 2020-08-31 13:29:28 +10:00
overview.py rebuild_filtered_deck() and new_filtered() 2020-09-03 18:02:47 +10:00
pinnedmodules.py update to latest isort, pylint and pytest 2020-08-31 12:05:36 +10:00
preferences.py fix help url paths 2020-10-10 00:38:07 +08:00
previewer.py Allow <audio> to play without user interaction in accordance to autoplay setting 2020-11-10 14:53:45 +01:00
profiles.py formatting fixes 2020-10-12 12:17:02 +10:00
progress.py don't reschedule repeating timers that occur during progress 2020-09-30 10:01:06 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py fix untyped def issues in aqt/__init__.py 2020-08-02 10:22:08 +10:00
reviewer.py Allow <audio> to play without user interaction in accordance to autoplay setting 2020-11-10 14:53:45 +01:00
schema_change_tracker.py track changes in fields dialog as well 2020-05-15 13:59:44 +10:00
sound.py Add .opus as an audio extension 2020-10-10 16:28:40 +02:00
stats.py add load_ts_page() & avoid duplicate call 2020-09-01 10:24:38 +10:00
studydeck.py fix help url paths 2020-10-10 00:38:07 +08:00
sync.py Fix "Sign Up" link location 2020-10-04 18:14:49 +01:00
tagedit.py handle default deck and filtered deck suppression in the backend 2020-05-15 21:21:10 +10:00
taglimit.py Turn on check_untyped_defs for aqt.taglimit 2020-07-25 15:45:31 -06:00
taskman.py lint fixes 2020-06-01 13:57:10 +10:00
theme.py fix invisible scrollbar in nightmode 2020-10-06 14:35:21 +10:00
toolbar.py update to latest black 2020-08-31 13:29:28 +10:00
tts.py fix audio getting stuck (2/2) 2020-03-15 09:34:04 +10:00
update.py Turn on check_untyped_defs for aqt.update 2020-07-25 17:31:44 -06:00
utils.py cleanup / renames 2020-11-10 14:53:04 +01:00
webview.py Allow <audio> to play without user interaction in accordance to autoplay setting 2020-11-10 14:53:45 +01:00
winpaths.py tweaking the folder names again 2020-01-03 07:48:38 +10:00