goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.36k stars 2.21k forks source link

Cross-origin audio not playing in desktop Chrome #1465

Closed joonaspaakko closed 3 years ago

joonaspaakko commented 3 years ago

I made a test case: https://codepen.io/joonaspaakko/pen/rNWQKpX

  1. When you click play, console log prints playing(), seek(), and duration() every second

  2. I don't know if there's a better test to be made, but what it prints out when I run it in chrome is this:

    playing: true seek: 0 duration: 291.4
    • seek() never changes and there's no audio
    • So howler seems to think it's playing something, it even fetches the duration, but it's not actually playing anything
  3. On Firefox seek() is changing and I'm getting audio


Update: I tested this on a different computer with the same chrome version _Version 89.0.4389.82 (Official Build) (x8664) and my test audio works on this computer just fine... Strangely enough howler's radio example is still not outputting any sound.

joonaspaakko commented 3 years ago

Turns out I'm just a panicking idiot. Didn't do enough thinking and I've now realized that I have a Chrome extension called Disable HTML5 autoplay, that not only disabled auto play in this case but also fully blocked playback.

Should've done better testing in incognito from the start...