Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1794

HTML audio element is disabled even though src is correct

$
0
0

I have an HTML audio element with src pointing to a valid URL, but the audio element is greyed out and disabled. Right next to the audio element, I have a link that goes to directly the src URL, which correctly points to the mp3 file on S3.

I can't figure out why the audio player is in a disabled state. It's implemented in Svelte code below. Happening in Chrome and Safari browsers.

How can I remove the disabled state from this audio player?

<div><audio controls name="audio"><source src={audioUrl} type="audio/mpeg" /></audio></div><div class="pt-4"><a href={audioUrl} target="_blank"><i class="bi bi-box-arrow-right" /></a></div>

enter image description here


Viewing all articles
Browse latest Browse all 1794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>