Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SkyStudios

macrumors member
Original poster
Mar 11, 2011
87
0
Based in Chicago
I cant find any MAC tutorials on how to add audio, audio player etc to a html mac based DW site, can anyone explain this in simple English?
 
I cant find any MAC tutorials on how to add audio, audio player etc to a html mac based DW site, can anyone explain this in simple English?

Are you looking for an audio player or background music? Or something else?
 
I guess a audio player is better since people can get annoyed if they can not to the music.

Would you be okay with an HTML5 based audio player?

Code:
<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio>

Add this, and use VLC to create an ogg file. I have this on one of my websites and it works great on all the browsers I've tested! If you want to have it play automatically, I believe you add:
Code:
autoplay="autoplay"
after the controls so it'd look like this:
Code:
<audio controls="controls" autoplay="autoplay">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio>
 
If you want to go old school html, you could use the embed tag:

<embed src="music.mp3" hidden="false" loop="true" volume="50"></embed>

If you want it to be background music, make hidden="true" . If you are not familiar with coding, go into the code view of dreamweaver and insert the above line wherever you want it to display.
 
Please don't do background music. That was cool in the mid 90s, but these days its just bad ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.