Help - Search - Members - Calendar
Full Version: XSPF Playlists
Hydrogenaudio Forums > Digital Audio/Video > General A/V
prayersforrain
Hello, hopefully this is the right forum. It seemed appropriate.

I'm having some pretty annoying problems setting up my XSPF playlist on our bands website.

We want to add the XSPF player to a certain page in our site. (Our press kit page)

www.prayers-for-rain.com/presskit/presskit.php (don't laugh, by the way, the page hasn't been templated yet, so yes, it is just raw info at the moment.)

As you can see when the page loads, the player does load. However, it does not seem to be reading the XSPF file I created. It is alway playing that "Puppetbox" stuff from the XSPF player site.

Here is my xspf file:

<!--
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>automatic.mp3</location>
</track>
<track>
<location>dreamgardenlive.mp3</location>
</track>
<track>
<location>fallingin.mp3</location>
</track>
<track>
<location>anewlife.mp3</location>
</track>
<track>
<location>sleepyhead.mp3</location>
</track>
</trackList>
</playlist>
-->

Not commented out, of course.

What is going on? Why isn't the player connecting to the xspf file that I uploaded? XSPF is brand new to me, so taht's partly the problem. There is very little documentation out there on this whole topic, hopefully someone out there can help me out?

My e mail is: jamie@prayers-for-rain.com

Please help!
Gambit
QUOTE(prayersforrain @ Sep 26 2005, 03:45 AM)
My e mail is:  jamie@prayers-for-rain.com 
Please help!
*

Yeah, great. Do you actually know what the purpose of a "Forum" is?
prayersforrain
QUOTE(Gambit @ Sep 26 2005, 05:53 AM)
QUOTE(prayersforrain @ Sep 26 2005, 03:45 AM)
My e mail is:  jamie@prayers-for-rain.com 
Please help!
*

Yeah, great. Do you actually know what the purpose of a "Forum" is?
*





Very useful reply, thank you.
prayersforrain
Does anybody have any actual answers here? I really can't figure out what the problem is.

It seems like the player is not reading the playlist I have on site at all.

No matter what, it seems to always go to the default playlist elsewhere.

What's going on?
Klyith
According to this site, you need to have domain / folder info for the mp3 files in the XSPF playlist. Thus:
CODE
<location>http://www.prayers-for-rain.com/presskit/songs/automatic.mp3</location>

instead of:
CODE
<location>automatic.mp3</location>
prayersforrain
QUOTE(Klyith @ Sep 27 2005, 11:15 AM)
According to this site, you need to have domain / folder info for the mp3 files in the XSPF playlist. Thus:
CODE
<location>http://www.prayers-for-rain.com/presskit/songs/automatic.mp3</location>

instead of:
CODE
<location>automatic.mp3</location>

*




No. That didn't work. It still defaults back to some playlist on a remote site. It's like it's embedded in the damned file, but I can't get the .fla file to open "Unexpected File Format."

I don't understand it, because I've copied others XSPF files, and just subsituted address/names/etc. It still doesn't work.
This makes no sense, and it's getting very frustrating, as this project was supposed to be completed quite a long time ago.

Is there an embedded player that will actually LINK to the friggin playlist I tell it to?
MJT
Try closing the <param> tags on your HTML, like so:

CODE
       <param name="allowScriptAccess" value="sameDomain" />
       <param name="movie" value="http://www.prayers-for-rain.com/presskit/xspf_player.swf?playlist_url=http://www.prayers-for-rain.com/presskit/playlist.xspf&autoplay=true" />
       <param name="quality" value="high" />
       <param name="bgcolor" value="#343466" />


Notice the " />" at the end of the lines. I duplicated your setup and it works on my server, and that's the only difference I can see...

edit: Aha! Found it. You're embedding the wrong file:

CODE
<embed src="http://www.prayers-for-rain.com/presskit/songs/xspf_player.swf ...


Take out the songs/ portion. (Closing your <param> tags is also a good idea though).
Latexxx
Closing tags with / is a quirk of xhtml and not doing it shouldn't cause any troubles.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.