trgkanki / ankitime

please don't procrastinate
GNU Affero General Public License v3.0
2 stars 0 forks source link

Sometimes addon won't sound (related to webkit autoplay issue) #1

Closed phu54321 closed 4 years ago

phu54321 commented 4 years ago

Bug report

Describe the bug

Sometimes, while addon detects me leaving anki session for a while, it won't play a sound.

Reproduction step

  1. Open a reviewer
  2. Without doing anything, switch to other window
  3. Wait for 30+ seconds. There will be no sound
  4. After reverting to anki window, it shows resume notifications.

Expected behavior

It should sound after 30 seconds.

Actual behavior

It won't alarm.

Anki/OS versions

Additional context

This is related to chromium's autoplay policy. Chrome by default prevents autoplay of media without user interactions. source