MRnegative6 Posted January 4, 2010 Report Share Posted January 4, 2010 Does anyone know how this can be done? If so please tell me:) Link to comment Share on other sites More sharing options...
Rendril Posted January 4, 2010 Report Share Posted January 4, 2010 (edited) What is the file type that you want to play? The below code should work for most, replace SONG_URL with your file's path, it should work in most browsers. [code]<embed src="SONG_URL.mp3" hidden="true" /> <noembed><bgsound src="SONG_URL.mp3" /></noembed>[/code] Edited January 4, 2010 by Rendril Ledah and Lazarus 1 1 Link to comment Share on other sites More sharing options...
Rockistah Posted January 4, 2010 Report Share Posted January 4, 2010 Greetings! I've tried the code that I used on my friendster account and it is working on my comments on self page. Below is the format of the code: [quote]<embed src="filename.ext" width="x" height="x" autoplay="x" hidden="x" loop="x" volume="x"></embed>[/quote] Replace the value of the src with the file path of the song. Below is the code that I have on my comments on self page. [quote]<embed width="145" height="60" hidden="true" autoplay="true" volume="100" type="application/x-shockwave-flash" src="http://suzanneandsimon.com/files/music/Tesla-Love_Song.mp3"></embed>[/quote] The code is going to play the song Love Song by Tesla on my page. Good luck! Signed, Rockistah Link to comment Share on other sites More sharing options...
apophys Posted January 5, 2010 Report Share Posted January 5, 2010 There's a site devoted to this: www.playlist.com Make a playlist from the database or add your own from the URL. Registration is free. Then it'll give you the HTML code to embed it. Example: the playlist on my profile. Link to comment Share on other sites More sharing options...
MRnegative6 Posted January 5, 2010 Author Report Share Posted January 5, 2010 Hmm well thanks but its still not working:/ I get this: ></strong><embed height="100" hidden="true" width="100" type="application/x-shockwave-flash" src="http://www.youtube.com/watch?v=UH4HDn4v24I"></embed> <noembed></noembed> The song as you can see is in: http://www.youtube.com/watch?v=UH4HDn4v24I Link to comment Share on other sites More sharing options...
Rendril Posted January 5, 2010 Report Share Posted January 5, 2010 You are trying to play a YouTube (flv file), this is why I asked what type of file it was. YouTube has a small protection on their .flv's, so you need to add some more parameters. Change the width and height if you want the player to visible. [code] <embed width="0" height="0" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/v/UH4HDn4v24I&feature=player_embedded&fs=1&autoplay=1"></embed> [/code] On a side note, YouTube provides the code in the "Embed" box to the right of the video, I haven't tested it but I assume it would work. Link to comment Share on other sites More sharing options...
MRnegative6 Posted January 5, 2010 Author Report Share Posted January 5, 2010 [quote name='Rendril' date='05 January 2010 - 04:36 PM' timestamp='1262709381' post='51911'] You are trying to play a YouTube (flv file), this is why I asked what type of file it was. YouTube has a small protection on their .flv's, so you need to add some more parameters. Change the width and height if you want the player to visible. [code] <embed width="0" height="0" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/v/UH4HDn4v24I&feature=player_embedded&fs=1&autoplay=1"></embed> [/code] On a side note, YouTube provides the code in the "Embed" box to the right of the video, I haven't tested it but I assume it would work. [/quote] Yes the Youtube "embed" box works, thank you for the script too > Link to comment Share on other sites More sharing options...
phantasm Posted January 5, 2010 Report Share Posted January 5, 2010 the only song types you can put into a embed file are mp3 files only Link to comment Share on other sites More sharing options...
Rendril Posted January 5, 2010 Report Share Posted January 5, 2010 [quote name='phantasm' date='05 January 2010 - 08:07 PM' timestamp='1262714844' post='51917'] the only song types you can put into a embed file are mp3 files only [/quote] It depends on the browser and plugin support. I think midi, wav and mp3 are the default supported are. Link to comment Share on other sites More sharing options...
Shadowseeker Posted April 3, 2010 Report Share Posted April 3, 2010 Close due to inactivity. Link to comment Share on other sites More sharing options...
Recommended Posts