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?
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?
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=<strong>track/?id=quPUYJJGURYLGEqdCJEmczPe</strong>&type=mp4&playlist=bottom&stretching=fill');
so.write('player');
</script>
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=<strong>track/%3Fid%3DquPUYJJGURYLGEqdCJEmczPe</strong>&type=mp4&playlist=bottom&stretching=fill');
so.write('player');
</script>
yay! it worked... :) only I had to remove: type=mp4
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
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>
<strong><meta rel='type'>video</meta></strong>
</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');
<strong>so.addVariable('file', encodeURIComponent('track/?id=quPUYJJGURYLGEqdCJEmczPe'));</strong>
so.addVariable('playlist', 'bottom');
so.addVariable('stretching', 'fill');
so.write('player');
</script>