Need help with audio script (Not Playing???)
Im making a horror ARG apart of my site but theaudio script isnt working plz help!
![](https://cdn.answeroverflow.com/1140664267188752456/Screenshot_2023-08-14_9.56.40_AM.png)
35 Replies
that src url looks suspicious, is there any error in the network tab of the dev tools?
Its not a URL its a local file improted to the FTP, i cant get it to play
ill check tho
No! Its empty
![](https://cdn.answeroverflow.com/1140664868773580923/image.png)
reload the page with that tab open
![](https://cdn.answeroverflow.com/1140664968493150321/image.png)
@jochemm
jeez, give me a second
did you read the link I sent in #general? https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide
I did, the code didnt work
what happens when you copy the
htdocs/...
string up to and including .mp3
but not the quote, and then delete everything after the last /
in the browser URL bar and paste the htdocs thing there?
(and hit enter obviously)Well its a wav file...
And it didnt work
"didn't work" is surprisingly unhelpful, what happened exactly?
Nothing at all. Just the image shaking (Witch i put in)
what is in the URL bar right now then?
and did you hit enter?
so you didn't do any of this?
i did
Heres the entire script:
![](https://cdn.answeroverflow.com/1140666991854768189/image.png)
is that live somewhere? Somewhere I can click a link and see that I mean
I don't see the audio tag
Did you add it and forget to upload it?
right, so I refreshed the page because I ran into it closing tabs, and it seems like the audio tag was now added
when I do this (which turns the URL into "gvtube.great-site.net/htdocs/the_screeches_of_hell.wav"), I get a 404 error
if I go to http://gvtube.great-site.net/the_screeches_of_hell.wav (without the htdocs part), it downloads a wav file. You probably want to remove
htdocs/
from the src attribute@jochemm Tried that, dosent work...
oh, I see, your HTML isn't well formed
your audio tag is getting included in the style tag because you didn't close it
there's just a mess of style tags and random stuff dumped in there, you really need to learn to format your document properly. You get really unexpected results if you don't properly open and close tags and keep your tags in the right places
try this instead:
Still didnt work
@jochemm
this pops up in my browser now:
![](https://cdn.answeroverflow.com/1140683198825771149/image.png)
Th
TH?
if I change it to allowed it works
same, but it dosent loo[
did you read the link I sent you? It describes in great detail how and why autoplaying audio doesn't work in a lot of cases
loop*
add the
loop
attribute <audio src="the_screeches_of_hell.wav" autoplay loop>
OMG thx very much its working now!
just remember, everyone else will also have to set that to allowed
I put the title as "PUT SOUND TO ALLOW"
so they get the mom lmao
👍
Well see ya later 🙂
@jochemm 1 sec. can i get code for dipalying an img rq?