Jump to content

Music On Comment On Self Page


Recommended Posts

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 by Rendril
Link to post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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&amp;feature=player_embedded&amp;fs=1&amp;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 post
Share on other sites

[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&amp;feature=player_embedded&amp;fs=1&amp;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 post
Share on other sites

[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 post
Share on other sites
  • 2 months later...
Guest
This topic is now closed to further replies.
  • Forum Statistics

    16,204
    Total Topics
    176,697
    Total Posts
  • Recently Browsing

    No registered users viewing this page.

  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...