The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Using MP3 in HTML

Go down

Solved Using MP3 in HTML

Post by Guest February 2nd 2014, 5:03 pm

Hi all,

I tried various websites already, like W3Schools, to make this work, but I can't. Can someone please help me to correct this code?

Code:
<audio controls=""><source src="http://yoshi.2yr.net/BIGfiles/mp3s/YI-07-flower%20garden.mp3" type="audio/mpeg" autoplay="true" loop="true" hidden="true" /></audio>



I'm trying to get a background song working in my Webshop (HTML based).

Thanks in advance,

Samantha

Main site URL: http://www.game-xtreme.com
Shop URL: http://www.game-xtreme.com/h3-dungeon-shop
avatar
Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

Post by Ange Tuteur February 2nd 2014, 5:25 pm

Hello SamanthaS,

Try this :
Code:
<audio controls autoplay loop>
<source src="http://yoshi.2yr.net/BIGfiles/mp3s/YI-07-flower%20garden.mp3" type="audio/mpeg">
</audio>
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Using MP3 in HTML

Post by Guest February 2nd 2014, 5:30 pm

Hi Ange! cheers

I know you're working hard on it. I had it going this afternoon, but I replaced the code by some silly mistake and now I can't remember the solution.... :'( Your code's as good as mine, and I'm sad to say it won't work.
avatar
Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

Post by Ange Tuteur February 2nd 2014, 5:36 pm

That is weird, it seems to be working. Which browser and version of it are you using ?

Using MP3 in HTML Captu336
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Using MP3 in HTML

Post by Guest February 2nd 2014, 5:44 pm

FireFox 26.0, the latest. I'm sure my computer plays audible sound. Yea, I can see that player too, for a sec after it disappears into nowhere. I like to get the thing hidden and autoplay the sound. Width and height can be set to "0" too.

What are you using? And can you hear anything?


EDIT: Oh dear. I made a script error. It's solved now! Pretty, pretty, pretty! All I need still is to hide the controls... using "hidden" somewhere or width="0", height="0"? I owe you big time again, Ange!

EDITTED AND SOLVED! hidden="true" did the trick! The complete code runs as follows now:

Code:
<audio style="" controls="" autoplay="" loop="" hidden="true"><source src="http://mariomedia.net/music/Nintendo%2064/Banjo-Kazooie/129%20-%20Click%20Clock%20Wood%20%28Spring%29.mp3" type="audio/mpeg" /></audio>



THANKS, ANGE!  cheers  cheers  cheers Check it out before locking the topic: http://www.game-xtreme.com/h3-dungeon-shop AWESOME!
avatar
Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

Post by Ange Tuteur February 2nd 2014, 9:36 pm

It looks great Wink

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum