Jump to content
xisto Community
Sign in to follow this  
marcus.360

How To Put Music Into Dreamweaver? Help

Recommended Posts

there are a couple of ways to do this. the first is very basic: the user goes to the site, the sound file starts playing. the code is:

<bgsound src="whatever.mp3" loop="infinite"/>

but of course, if the user were to hate that song or something, they would have no way of stopping it without muting their volume, which can be annoying.

the best way to do this is to embed a flash player... there are many good ones out there, such as this one, or you can make one yourself.

finally, an embedded quicktime player, as is on many sites. the code would look something like this:

<embed src="media/whatever.mp3"autostart="true" loop="false" controller="true" id="whatever.mp3"name="bg song" pluginspage="https://support.apple.com/kb/DL837?locale=en_US;

on a personal note though, i dont like autoplaying music - i like having some choice in the matter... my noscript would block it anyway :)

hope i helped

Share this post


Link to post
Share on other sites
here's an example of an embedded quicktime object.

all embed methods support file:/// protocols, so i guess it's up to you to choose which!

i'd personally go with xspf, because it's easier to change which song to play etc. because all you have to do is edit the xml file.

once again, it's up to you.

finally, please don't double-post...

Share this post


Link to post
Share on other sites

embed code:

<object type="application/x-shockwave-flash" width="400" height="170"data="http://yourdomain.com/xspf_player.swf?playlist_url=http://yourdomain.com/yourplaylistlist.xspf"><param name="movie" value="file:///pathtositefolder/xspf_player.swf?playlist_url=file:///pathtositefolder/yourplaylistlist.xspf" /></object>

then, the xspf file will look something like this:

<?xml version="1.0" encoding="UTF-8"?><playlist version="1" xmlns="http://xspf.org/ns/0/">	<trackList>		<track><location>file:///mp3s/song_1.mp3</location></track>		<track><location>file:///mp3s/song_2.mp3</location></track>		<track><location>file:///mp3s/song_3.mp3</location></track>	</trackList></playlist>

replace the locations with the locations with your file.

download the swf file, save it in the same directory as the site.

tadaa!

Share this post


Link to post
Share on other sites
adding music on dreamweaver How To Put Music Into Dreamweaver?

hello.. I need help adding music onto dreamweaver web, and I want it to play throughout the whole pages.. Please if anyone knows how let me know... 

-reply by Meley 

Share this post


Link to post
Share on other sites
insert mp3 in htmlHow To Put Music Into Dreamweaver?

for the simple way use this:

<embed src="whatever.Mp3" width="32" height="32"></embed>

-reply by st commy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.