MRnegative6 Posted January 4, 2010 Report Posted January 4, 2010 Does anyone know how this can be done? If so please tell me:)
Rendril Posted January 4, 2010 Report 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 Lazarus and Ledah 1 1
Rockistah Posted January 4, 2010 Report 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
apophys Posted January 5, 2010 Report 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.
MRnegative6 Posted January 5, 2010 Author Report 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
Rendril Posted January 5, 2010 Report 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.
MRnegative6 Posted January 5, 2010 Author Report 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 >
phantasm Posted January 5, 2010 Report Posted January 5, 2010 the only song types you can put into a embed file are mp3 files only
Rendril Posted January 5, 2010 Report 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.
Recommended Posts