The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Using MP3 in HTML

View previous topic View next topic Go down

Solved Using MP3 in HTML

Post by Guest on 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

Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Using MP3 in HTML

Post by Guest on 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.

Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

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

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


Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Using MP3 in HTML

Post by Guest on 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!

Guest
Guest


Back to top Go down

Solved Re: Using MP3 in HTML

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

It looks great Wink

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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