marcus.360 0 Report post Posted August 8, 2008 I'm not sure if this is in the right column but here we go. Does anyone know how to put music on a dreamweaver site which automatically plays when you visit the website. Thanks for the help. Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 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
marcus.360 0 Report post Posted August 8, 2008 Well i have decided i want the slim player from the flash thing so how do i put that into dreamweaver? Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 (edited) if you go to the link i gave you, and scroll down a bit further, there are comprehensive instructions explaining how to use the player. when it says you must use a xspf file: that is just a playlist format. here are instructions on how to make such playlists. have fun! Edited August 8, 2008 by bthaxor (see edit history) Share this post Link to post Share on other sites
marcus.360 0 Report post Posted August 8, 2008 Well i dont no what a quicktime one looks like so which ever one is easiestAnd i just wanna be able to but my own musi file from my documents in there? Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 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
marcus.360 0 Report post Posted August 8, 2008 (edited) Could i just send you my Page and the music file and could you be ever so helpful and put it in there, or would it take to long?p.s. i like the quicktime but i would prefer the music player Edited August 8, 2008 by marcus.360 (see edit history) Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 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
marcus.360 0 Report post Posted August 8, 2008 (edited) So do i just copy and paste those into my dreamweaver "code" bit.http://forums.xisto.com/no_longer_exists/404.pnghttp://forums.xisto.com/no_longer_exists/404.png Edited August 8, 2008 by marcus.360 (see edit history) Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 yup...also, if you're planning to upload this to the web, then this guide is about as comprehensive as it gets in terms of using this flash player... Share this post Link to post Share on other sites
marcus.360 0 Report post Posted August 8, 2008 Look at the imageshack photos i put on cuz thats whats happened Share this post Link to post Share on other sites
bthaxor 0 Report post Posted August 8, 2008 surely commonsense would tell you that yourdomain.com is not an actual site...replace the paths with the ones that you want to use.... Share this post Link to post Share on other sites
marcus.360 0 Report post Posted August 8, 2008 Replae them with what html? Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 21, 2009 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
iGuest 3 Report post Posted October 29, 2009 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