Media-Ed-Online / intro-web-dev-2017aut

Site for course "Introduction to Web Design and Development."
https://media-ed-online.github.io/intro-web-dev-2017aut/
MIT License
12 stars 3 forks source link

Issues with Sound #87

Open JMittalUM opened 6 years ago

JMittalUM commented 6 years ago

I am still having problems getting music from my own computer to work on the live site, I tried doing exactly as shown on the walkthroughs but it's not working with my own music. Is there a different way you are supposed to link it?

JonSwallow commented 6 years ago

@JMittalUM if you have your file uploaded to say; your media folder.

<audio src="../media/mysong.mp3" controls autoplay>
<p> This browser does not support our audio format. </p>
</audio>

refer to pg 219, 220 Duckett
and https://media-ed-online.github.io/intro-web-dev/modules/topic-06/audio/

If you have done all that and it still does not work check your browser it may be worth updating Firefox or Chrome. Here is a list of supported browsers from W3.

https://www.w3schools.com/html/html5_audio.asp

JustineEvansUM commented 6 years ago

Hey @JMittalUM! So far, I can see there's a file-naming issue. I didn't go too deep, but the file is good and it plays well! But you're linking to `../media/audio-01.mp3', while your filename is actually "audio-01.mp3.mp3" Try renaming to "audio-01.mp3" and see what that does first!

JMittalUM commented 6 years ago

Thank you! Renaming the file resolved it.