picobel icon indicating copy to clipboard operation
picobel copied to clipboard

Is <source> in <audio> not supported?

Open Kotsuha opened this issue 6 years ago • 0 comments

Hello.

I am trying out this plugin. I have HTML like this:

<audio>
	<source src="foo/bar.ogg" type="audio/ogg" />
	<source src="foo/bar.mp3" type="audio/mpeg" />
</audio>

When I press play the console says: Uncaught (in promise) DOMException: The element has no supported sources.

Seems that I can only use <audio src="...">? It would be nice if <source> in <audio> is supported.

Kotsuha avatar Sep 06 '18 08:09 Kotsuha