Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    4

    Cool Adding HTML code

    Am having a bit of an issue embedding a flash MP3 player into my web site. I downloaded the xspf player and followed the instructions but the last instruction was to add the following code.

    <object type="application/x-shockwave-flash" width="400" height="170"
    data="http:127.0.0.1/MusicPlayerExample/xspf_player.swf?playlist_url=http:127.0.0.1/MusicPlayerExample/playlist.xspf">
    <param name="movie"
    value="http:127.0.0.1/MusicPlayerExample/xspf_player.swf?playlist_url=http:127.0.0.1/MusicPlayerExample/playlist.xspf" />
    </object>

    The above url's have been changed to my location.

    I tried using a placeholder on the page to insert this code but that didn't work. I opened the page in FrontPage and added the code but that didn't work either.
    The player shows on the page and actually plays but is directed to some other play list and though it has about 300 songs, some quite good, without the code I can't get it to read from my playlist. Any thoughts?

  2. #2

    Default Re: Adding HTML code

    Well the URL is missing the // after http: and the IP (127.0.0.1) is actually your localhost PC.
    That won't work online or on your PC unless you have a web server set up.

    I'm not familiar with xspf.

    Here's one for Web Designer, but will open the same in Xtreme 5

  3. #3
    Join Date
    Jun 2009
    Posts
    4

    Question Re: Adding HTML code

    I do have a local web server setup and I tried the code w/ the // and without. Neither worked. The rest of the site works perfect. I'm now beginning to believe the swf file is directing to a play list. May try to decompile and see.

  4. #4
    Join Date
    Dec 2005
    Location
    Surrey, BC, Canada
    Posts
    566

    Default Re: Adding HTML code

    Looks like it should work just fine.

    I'd try to load http://127.0.0.1/MusicPlayerExample/playlist.xspf and make sure that the browser is finding the file right and that it has what you think it's supposed to in it.

    Failing that, the only other thing I can suggest would be to replace the 127.0.0.1 part of the operation with the actual IP of the machine or it's hostname. Flash has some security policies that may be doing something weird if it can easily tell that it's the local host that you're trying to do stuff on.

    You may also want to check your server's error log to see if the flash player is complaining about there not being a crossdomain.xml file. This is something I fought with a couple of months ago. Different versions of the flash plugin have different rules about wether this file needs to be there or not. I'd think it's unneccesary since the flash and the playlist are both from the same domain, but you never know.
    This signature would be seven words long if it was six words shorter.

 

 

Bookmarks

Posting Permissions

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