How do I get Widgetbox's "Flash MP3 Player" to recognize my XSPF file through yolasite.com?
I am trying to get the "Flash MP3 Player" Widget to correctly render an XSPF file I have hosted at yolasite.com.
I have already been able to directly embed a different working Flash Player with the appropriate tracklist on my site, so I know the MP3s are uploaded correctly, and both the SFW and XSPF files are working.
But I would love to instead load this same playlist into Widgetbox's "Flash MP3 Player" Widget.
I have already tried these two URLs when creating the Widget:
http://www.kylegullings.com/resources...
http://www.kylegullings.com/resources...
The second item is the valid URL to my .xspf file. So what am I doing wrong?
I have added a lot of additional details to the following test page:
http://www.kylegullings.com/playlist.php
It includes my original .xspf file's URL and full text (at the bottom), as well as a record of my various failed attempts.
Note: I am an HTML novice and hadn't heard of XSPF before yesterday.
Any ideas?
I have already been able to directly embed a different working Flash Player with the appropriate tracklist on my site, so I know the MP3s are uploaded correctly, and both the SFW and XSPF files are working.
But I would love to instead load this same playlist into Widgetbox's "Flash MP3 Player" Widget.
I have already tried these two URLs when creating the Widget:
http://www.kylegullings.com/resources...
http://www.kylegullings.com/resources...
The second item is the valid URL to my .xspf file. So what am I doing wrong?
I have added a lot of additional details to the following test page:
http://www.kylegullings.com/playlist.php
It includes my original .xspf file's URL and full text (at the bottom), as well as a record of my various failed attempts.
Note: I am an HTML novice and hadn't heard of XSPF before yesterday.
Any ideas?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hey there,
It looks like the issue is serving that XSPF file from Yola, who doesn't recognize the filetype. You'll need to host that file somewhere else that can recognize the filetype for be configured to recognize it.
-
Thanks so much for your help.
I've updated my site with a new attempt, this time with a different host for the XSPF file (www.sigmirror.com). Perhaps I need to host ALL my files there, including the MP3's? You can see the new XSPF files at the bottom of this page:
http://www.kylegullings.com/playlist.php -
So I think you've got some config that still needs to be done here. The XSPF files still aren't coming back as text in the browser as I'd expect to see. You should have some config somewhere on your server to set this file type to return as text:
http://www.sigmirror.com/files/25802_... -
Inappropriate?Not sure how to check that, but I'll play around with it later today. Thanks again!
-
Inappropriate?Hi again, Dave. Do you happen to know of any free online file hosting sites that allow for manual configuration of MIME types? It seems like that's the issue with both hosts I've tried so far. (Simplicity + Free = Less flexibility.)
Additionally, do you happen to know - once I have the XSPF file hosted in a correctly configured location - will I have to host my mp3s in that same location? Or can I keep them on my Yola site's File Manager?
Thanks again for your help so far.
- - -
Perhaps there's an easier way besides XSPF to use the Flash Mp3 Player Widget? It also reads RSS feeds, but I don't know an efficient way of creating an RSS feed containing just mp3 files from my hard drive.
One thing I did get to work was creating a new blog just for this playlist, and using its RSS feed as the link in the Widget. But creating a new blog for each playlist seems like a wasteful and cumbersome solution!
I’m in over my head
-
Inappropriate?I'm not aware of any free hosting sites that allow you to configure MIME types. Sorry! Also not aware of any good alternate MP3 widgets. You could always contact the developer for some help.
http://www.widgetbox.com/developer/ba...
-
Inappropriate?Hi Kyle, I'm the developer of that widget.
What you can do to try to serve the file properly is to use PHP to proxy your playlist file. Try this:
Create a folder and put your XSPF file in it. Name your XSPF file "playlist.xspf". Create a PHP file and put it in that folder too. Let's call the PHP file "proxy.php".
In the PHP file, use this code:
<?php
header('Content-type: application/xspf+xml');
readfile('playlist.xspf');
flush();
The above code should be saved into your PHP file. There should be no whitespace (new lines, extra spaces, etc.) before the <?php.
Try this out and let me know how it turns out!
I’m confident
-
Hi Matt
I'm having the exact problem that kyle is having...I implemented your solution, still no deal...my server ppl set the mime-type to recognize- still not working - any help? -
Inappropriate?My host, yola.com, doesn't allow upload of .php or .html files. So an XSPF solution seems hopeless for a web-design newbie like me!
I think I'll try the RSS route instead. My new plan is:
1.) Create a new (hidden) webpage that includes my playlist's mp3s
2.) Create an RSS feed of that page, and
3.) Input that feed URL through the Flash MP3 Player widget.
...Does that sound reasonable?
If that doesn't work, I'll let you know. Thank you both again for all your help!
I’m getting there?
-
Inappropriate?Your RSS feed MUST include <enclosure> tags for that to work--it's not the <link /> tags that matter.
What you can try is to make your RSS feed by hand (using enclosures), then save it as a .xml file. Try uploading the XML file and use that as your playlist.
XSPF is a bit of an obscure format for site hosts...XML is a lot more common and should be supported by a company like Yola.</enclosure>
I’m confident
-
Inappropriate?Thank you again, Matt. Incredibly helpful. Yes, Yola does allow XML.
And thanks for the tip about the enclosure tags. I hadn't included them originally.
Since I've moved away from the XSPF solution, I started a new thread about using RSS with your widget:
http://getsatisfaction.com/widgetbox/...
Any further thoughts? :)
I’m elsewhere
-
Inappropriate?Hi
I'm still having this problem - no matter what I do....it still won't play my .xspf file. Please help. I've implemented your php solution to no avail...
a.
I’m frustrated
-
Inappropriate?This widget won't play my xspf file no matter what I do - I've thried the php solution - to NO avail!
I would like to use rss too....BUT with this widget - I like the feature where it shows art as well....please help asap! -
Inappropriate?Hi a, I'm the developer of this widget. Could you provide the link to your XSPF feed? Thanks
Matt -
Inappropriate?I looked at your feed, and the player needs full track information to properly render your playlist. You only have one track in there at the moment and no track details. The player needs more information than that to put something together.
If you're looking to play only one file, check out my other widget: http://widgetbox.com/widget/mp3
Thanks
Matt -
Thanks, but I'm just trying to get this one or two files to play before putting my whole playlist in there. It won't play. I copied the source code for an xspf file from http://xspf.org - I don't know what other track info I'm supposed to put in there? -
Inappropriate?Can you send me an example of a .xspf file that it should be like? I'm not sure what you mean by full track information....
Thanks! -
Inappropriate?It still doesn't work - I am using this code from the .xspf website:
<?xml version="1.0" encoding="UTF-8"?>
<playlist>
<tracklist>
<track>
<location>http://example.com/song_1.mp3</location>
<!-- artist or band name -->
<creator>Led Zeppelin</creator>
<!-- album title -->
<album>Houses of the Holy</album>
<!-- name of the song -->
<title>No Quarter</title>
<!-- comment on the song -->
<annotation>I love this song</annotation>
<!-- song length, in milliseconds -->
<duration>271066</duration>
<!-- album art -->
<image>http://images.amazon.com/images/P/B00...</image>
<!-- if this is a deep link, URL of the original web page -->
<info>http://example.com</info>
</track>
</tracklist>
</playlist>
My page is at http://www.ottawacitizennews.com/pod/
the path to the xspf is www.ottawacitizennews.com/pod/playlis...
Please help!
I’m confused
-
Inappropriate?Hi all!
I'm releasing a new version of the Flash Mp3 widget this afternoon. It includes an updated parsing engine. Please make sure all XSPF feeds:
- Have a playlist title (a <title></title> element in the <playlist></playlist> tag)
- Have proper information for each item (title, location, image, etc.)
Also, XSPF feeds should (from here on out) be served with the MIME type text/xml. On most servers, you can save your feed with a .xml extension and this will already be properly configured.
Thanks!
Matt
I’m confident
-
Inappropriate?One other note: you need a crossdomain.xml file in the root of your site. For reference, check out mine:
http://cdn.serverboy.net/crossdomain.xml
Notice that it isn't in any folders. Your crossdomain.xml file MUST be on the same subdomain as your playlist. -
Inappropriate?Matt, Thanks for that
I have a question: If I use this player in the widget and I upload my mp3s to the server and new xspf file....will the payer automatically/dynamically update? Please tell me it will! (but I suspect it doesn't...)
Thanks!
a. -
Inappropriate?Hi a
It sure does! It actually downloads a new copy of the playlist every time a user hits it. So it's always up to date.
Thanks
Matt
Loading Profile...





