Results 1 to 6 of 6

Thread: Embedding mp3

  1. #1
    Ghost of Christmas' past Recognized Member theundeadhero's Avatar
    Join Date
    Oct 2001
    Location
    In Jojee's pants x_~
    Posts
    15,567

    FFXIV Character

    Villania Valski (Adamantoise)
    Contributions
    • Former Cid's Knight
    • Former Senior Site Staff

    Default Embedding mp3

    This is what I'm using:

    "Sign for less than"embed src="http://www.geocities.com/floydsarmy/name.mp3"
    width="140" height="40" autostart="false" loop="false">
    </embed>

    What I'm getting is a url invalid messege where the mp3 player should be. Any ideas why? The address is right.
    ...

  2. #2
    lomas de chapultepec Recognized Member eestlinc's Avatar
    Join Date
    Jun 2000
    Location
    brooklyn
    Posts
    17,552
    Contributions
    • Former Cid's Knight

    Default

    I went directly to that url and got a page not found error.

  3. #3
    Ghost of Christmas' past Recognized Member theundeadhero's Avatar
    Join Date
    Oct 2001
    Location
    In Jojee's pants x_~
    Posts
    15,567

    FFXIV Character

    Villania Valski (Adamantoise)
    Contributions
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    Name isn't the real name of the file. I wanted to leave that a surprise for when you see my lj.
    ...

  4. #4
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    Try creating an M3U file containing the URL of the song, and setting the src flag of your embed tag to the M3U flag.
    In other words:
    • Create a text file
    • Put "http://www.geocities.com/floydsarmy/name.mp3" in it
    • Save it as "song.m3u"
    • Change your embed tag to "&lt;embed src="http://www.geocities.com/floydsarmy/song.m3u" width="140" height="40" autostart="false" loop="false"&gt; (assuming you save the song in the root of your web directory.


    Even if that doesn't work, that's a better way to embed stuff; you only need to change one file to change the song, which is handy if you have multiple songs in the m3u file, and it also allows for more immediate playback.

    Also, some versions or configurations of Firefox have trouble with WMP plugins, and don't automatically assume an mp3 is to be played by the WMP plugin; for example, my Firefox uses the Quicktime plugin (don't worry, only on Windows, which I hardly use. ). So, you should specify the plugin, by including 'type="application/x-mplayer2"' as a parameter of your embed tag.

    Here's an example of how I would code an embed tag:
    <pre>&lt;emb<b></b>ed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
    src="http://www.geocities.com/floydsarmy/song.m3u" showstatusbar=1 EnableContextMenu=1
    width=140 height=46 autostart=0 showcontrols=1 volume=30 \&gt;</pre>
    It would appear also, that you aren't going to get far hosting mp3s on Geocities. They allow 4.2Mb of bandwith per hour or something tiny like that, so that might be your problem.

    P.S.
    To make a "&lt;", just use the escape code "&amp;lt;" ("&amp;gt;" is for &gt;, I'll let you figure out what the letters stand for)

    EDIT: It would also appear that stupid geocities don't allow M3U files. Just leave out that step and keep it as an mp3 embed then, or get your m3u file hosted somewhere that allows both that file type and hotlinking to files.

  5. #5
    Ominous Wanderer Tech Admin Samuraid's Avatar
    Join Date
    Oct 2001
    Posts
    5,522

    Default

    Also, if you want to use &lt; on the forums...

    &amp;lt; = &lt;


  6. #6
    Pat Fenguin Xaven's Avatar
    Join Date
    Jan 2005
    Location
    Desert Beach
    Posts
    2,945

    Default

    http://www.dazzled.com/ offers unlimited bandwidth, so you may want to head to a place like that instead of Geocities. :D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •