...

View Full Version : xspf player



Weirwood
03-03-2008, 08:36 PM
Hello there,


I've just made at site for my production company. Here's the link (http://www.manikemusic.com)


I'm trying to use this mp3 player to play the tracks that we write.

It works fine on macs running firefox and safari but I can't for the life of me get it to work on a PC running AOL or Internet Explorer... (not tried firefox..might be an idea).

It basically doesn't seem to be able to load the playlist on the PC and shows the default title on the player.

I noticed a similar question asked here down the page a bit.. but it didn't help.

I don't understand why the player is showing the default text... surely if I have set the player to autoload the playlist... it should be trying to load the playlist even if it is unsuccesful.


Any help would be much appreciated!

Thanks lots.

_Aerospace_Eng_
03-03-2008, 09:57 PM
IE uses the object tag, other browsers use the embed tag. Change this

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="375" height="14" align="center" >
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="xspf_player_slim.swf"/>

<param name="quality" value="high"/>
<param name="bgcolor" value="#E6E6E6"/>
<embed src="http://www.manikemusic.com/xspf_player_slim.swf?playlist_url=http://www.manikemusic.com/playlist.xspf&autoplay=true"
quality="high" bgcolor="#E6E6E6" name="xspf_player_slim" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
align="center" height="14" width="375"> </embed>
</object>
to this

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="375" height="14" align="center" >
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="xspf_player_slim.swf?playlist_url=http://www.manikemusic.com/playlist.xspf&autoplay=true"/>

<param name="quality" value="high"/>
<param name="bgcolor" value="#E6E6E6"/>
<embed src="http://www.manikemusic.com/xspf_player_slim.swf?playlist_url=http://www.manikemusic.com/playlist.xspf&autoplay=true"
quality="high" bgcolor="#E6E6E6" name="xspf_player_slim" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
align="center" height="14" width="375"> </embed>
</object>
Really though you should be using something like http://blog.deconcept.com/swfobject/ as it stands you need "Click to Activate" in IE.

Weirwood
03-03-2008, 10:39 PM
Thanks a load for the reply! Means alot.



I'll try what you've suggested and then get back.

Weirwood
03-03-2008, 10:57 PM
It works!

You're an absolute star!

Thanks :)

dedukes
06-12-2008, 11:33 AM
hi. I'm having the same issue and have hunted on and off for months for a fix. i'm not a coder, so i can't really problem solve myself. if you'd be so kind, any ideas on how to fix my page?

daredukes.com/music/music.html


thanks!

gnomeontherun
06-13-2008, 02:14 AM
http://www.codingforums.com/showthread.php?t=137848

Follow these instructions.

dedukes
06-13-2008, 01:12 PM
thanks, jeremy. i'll try. i'm not a programmer, but i'll see if i can figure it out.

gnomeontherun
06-13-2008, 04:15 PM
Just ask if you need clarification, but it doesn't require you to program anything. Just copy and paste the code. It tries to make it somewhat possible to understand.

dedukes
06-13-2008, 04:20 PM
thanks, I will. I'll give it a shot and let you know how I fair.

dedukes
07-20-2008, 07:36 PM
I finally got around to trying this. I'm sure there's something basic I'm not doing right. Below is what I've generated using the code from your link. I'd appreciate your help.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Dare Dukes--Music</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("xspf_player", "7.0.0", "expressInstall.swf"); // First parameter: name of Object ID, Second parameter: Minimum Flash version, Third Parameter:
</script>

</head>
<body>
<div>

<object id="xspf_player" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="170">

<param name="movie" value="http://daredukes.com/xspf_player.swf?playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="swfFile.swf" width="400" height="170">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

_Aerospace_Eng_
07-21-2008, 03:23 PM
You need to change the location of the flash file in two places in the code above. I'll let you figure that out.

dedukes
08-07-2008, 02:37 AM
You need to change the location of the flash file in two places in the code above. I'll let you figure that out.

I've finally had time to get back to this.

Um, I hate to say it, but i'm baffled. i'm looking for the spots you're referencing and i just don't know. (when I edit my website i'm like a blind man in a dark basement searching for a black cat that doesn't exist.)

I'm not even sure what you mean by "the flash file." by that you mean the xspf player?

how about a hint?

--dd

thanks for your patience.

_Aerospace_Eng_
08-07-2008, 11:26 PM
As I said two places

<object id="xspf_player" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="170">

<param name="movie" value="http://daredukes.com/xspf_player.swf?playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://daredukes.com/xspf_player.swf?playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" width="400" height="170">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

dedukes
08-07-2008, 11:57 PM
Thanks so much. I made that change. Now, alas, see what you get when you go to the page:

http://daredukes.com/music/music_fix2.html

code below:




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Dare Dukes--Music</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("xspf_player", "7.0.0", "expressInstall.swf"); // First parameter: name of Object ID, Second parameter: Minimum Flash version, Third Parameter:
</script>

</head>
<body>
<div>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="170" id="xspf_player">

<param name="movie" value="http://daredukes.com/xspf_player.swf?playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://daredukes.com/xspf_player.swf?playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" width="400" height="170">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

_Aerospace_Eng_
08-08-2008, 01:21 AM
Try this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Dare Dukes--Music</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("xspf_player", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="170" id="xspf_player">
<param name="movie" value="http://daredukes.com/xspf_player.swf" />
<param name="flashvars" value="playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://daredukes.com/xspf_player.swf" width="400" height="170">
<param name="flashvars" value="playlist_url=http://daredukes.com/xspf_player/ptoa_playlist.xspf" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

dedukes
08-08-2008, 11:14 AM
Thanks! That did it. I had to tweak the path for the xspf player, but you fundamentally fixed the issue (whatever it was).

Now all I've got to do is add the design back. Wish me luck

--dd

PrivateLabel
07-29-2009, 06:37 PM
I know this thread is old but i still am having problems getting my xspf player to work in IE. It works perfect like this in Firefox. My code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Young-Star</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("xspf_player", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="170" id="xspf_player">
<param name="movie" value="http://privatelabel.110mb.com/xspf_player.swf" />
<param name="flashvars" value="playlist_url=http://privatelabel.110mb.com/test.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://privatelabel.110mb.com/xspf_player.swf" width="400" height="170">
<param name="flashvars" value="playlist_url=http://privatelabel.110mb.com/test.xspf" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

_Aerospace_Eng_
07-29-2009, 10:59 PM
Is your page being hosted on 110mb or are you trying to put this on another server? If its on 110mb remove any instances of http://privatelabel.110mb.com/

PrivateLabel
07-29-2009, 11:34 PM
Thanks for the reply ! Yes my page is being hosted on 110mb. And I removed all the instances of http://privatelabel.110mb.com/ and still I get nothing on IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Young-Star</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("xspf_player", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="170" id="xspf_player">
<param name="movie" value="xspf_player.swf" />
<param name="flashvars" value="playlist_url=test.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="xspf_player.swf" width="400" height="170">
<param name="flashvars" value="playlist_url=test.xspf" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

_Aerospace_Eng_
07-30-2009, 12:33 AM
I guess I should have asked you to post all of your code link me to your site. You have this

<link href="/name.ico" rel="shortcut icon" type="image/x-icon" />
<div align="center"><body bgcolor = "black"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"WIDTH=684 HEIGHT=676><PARAM NAME=movie VALUE="http://privatelabel.110mb.com/youngstarfinal.swf"> <PARAM NAME=quality VALUE=best> <PARAM NAME=wmode VALUE=> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://privatelabel.110mb.com/youngstarfinal.swf" quality=best bgcolor=#000000 WIDTH=684 HEIGHT=676 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
<div align="center"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Young-Star</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("xspf_player", "9.0.0", "expressInstall.swf");
</script>
</head>
Do you not see anything wrong? You never close your first object tag. On top of that you seem to have code before your complete document. Remove this stuff and see if it works

<link href="/name.ico" rel="shortcut icon" type="image/x-icon" />
<div align="center"><body bgcolor = "black"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"WIDTH=684 HEIGHT=676><PARAM NAME=movie VALUE="http://privatelabel.110mb.com/youngstarfinal.swf"> <PARAM NAME=quality VALUE=best> <PARAM NAME=wmode VALUE=> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://privatelabel.110mb.com/youngstarfinal.swf" quality=best bgcolor=#000000 WIDTH=684 HEIGHT=676 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
<div align="center">

PrivateLabel
07-30-2009, 12:45 AM
Thank you that did work. But what i wanted is to have the player at the bottom/center of my website if i remove the code its just the player in itself.

_Aerospace_Eng_
07-30-2009, 01:35 AM
I understand that but it helps if you actually try to learn html. If you did try you would know that the code you've posted in your posts is a COMPLETE document. Nothing should go before it or after it. Try this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Young-Star</title>
<link href="/name.ico" rel="shortcut icon" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
html, body {
margin:0;
padding:0;
background:#000;
}
#main {
width:684px;
margin:auto;
}
#xspf {
margin:auto;
width:400px;
}
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("main_flash", "9.0.0", "expressInstall.swf");
swfobject.registerObject("xspf_player", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="main">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="684" height="676" id="main_flash">
<param name="movie" value="youngstarfinal.swf" />
<param name="wmode" value="transparent" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="youngstarfinal.swf" width="684" height="676">
<param name="wmode" value="transparent" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<div id="xspf">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="170" id="xspf_player">
<param name="movie" value="xspf_player.swf" />
<param name="flashvars" value="playlist_url=http://privatelabel.110mb.com/test.xspf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="xspf_player.swf" width="400" height="170">
<param name="flashvars" value="playlist_url=http://privatelabel.110mb.com/test.xspf" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
Study it and try to understand what I did.

PrivateLabel
07-30-2009, 01:39 AM
Thank you!!! I am in the process of learning now. I really appreciate your help. Thank you again. :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum