Jan. 29, 2009Bouke Regnerus
hi, I create a xspf playlist with php (http://dhost.info/vibes/track/?id=quPUYJJGURYLGEqdCJEmczPe). But it doesn't show up in the player...
here a prev. of the player: http://dhost.info/vibes/
anyone ideas?
Jan. 29, 2009lefTy
The URI in the location element of your playlist does not end in a recognized media file extension, therefore you must use the meta element to add the type to each track:
<?xml version='1.0' encoding='utf-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<title>Vibes Music XSPF playlist</title>
<info>http://dhost.info/vibes/</info>
<trackList>
<track>
<title>Born in the U.S.A.</title>
<creator>Bruce Springsteen</creator>
<info>http://dhost.info/vibes</info>
<annotation>All videos are the copyrighted properties of their respectieve artist and publishing company.</annotation>
<location>http://dhost.info/vibes/yt?q=Born+in+the+U.S.A.+Bruce+Springsteen</location>
<meta rel='type'>video</meta>
</track>
...
</trackList>
</playlist>
When the file URL contains special characters ( ? = & ), then it must be urlencoded, like this:
<script type="text/javascript">
var so = new SWFObject('mediaplayer/player.swf', 'mpl', '470', '470', '9.0.124');
so.addParam('allowscriptaccess', 'always');
so.addParam('allowfullscreen', 'true');
so.addVariable('file', encodeURIComponent('track/?id=quPUYJJGURYLGEqdCJEmczPe'));
so.addVariable('playlist', 'bottom');
so.addVariable('stretching', 'fill');
so.write('player');
</script>
Jan. 30, 2009Bouke Regnerus
sorry still not working :(
this is my code now:<script type="text/javascript">
var so = new SWFObject('mediaplayer/player.swf','mpl','470','470','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=track/?id=quPUYJJGURYLGEqdCJEmczPe&type=mp4&playlist=bottom&stretching=fill');
so.write('player');
</script>
Jan. 30, 2009Bouke Regnerus
sorry I posted the old code again
this is the new code:
<script type="text/javascript">
var so = new SWFObject('mediaplayer/player.swf','mpl','470','470','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=track/%3Fid%3DquPUYJJGURYLGEqdCJEmczPe&type=mp4&playlist=bottom&stretching=fill');
so.write('player');
</script>
Jan. 30, 2009Bouke Regnerus
yay! it worked...
only I had to remove: type=mp4
Nov. 03, 2009paul
i think XSPF player just won't work for internet explorer, unless you have own your webserver. But there is another flash player tiny and small, that works like a charm in both the browsers, check it out on my blog http://crazy4tips.blogspot.com/2009/11/total-guide-free-mp3-player-for-your.html
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.