JavaScript audio.play() error -


my code stopped working today (it worked before).

here code:

playme = new audio(link); playme.play(); 

here error in console:

uncaught (in promise) domexception: failed load because no supported source found. 

it audio.play(); doesn't work because if keep first line don't error (but dos't play).

i'm using chrome 52.0.2743.82 m (64-bit)

thanks.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -