Page 1 of 1

Embed the XSPF-Player in the Sidebar?

Posted: Sun Feb 11, 2007 11:47 pm
by Phaidros
Hi folks!
Now that i played around a lot with all the Plugins and everything I got the final look for my blog...the only thing that's needed is the Music...
So i would like to embed the XSPF-Player (http://musicplayer.sourceforge.net/#showcases) in the sidebar like on Musikdieb.de (http://www.musikdieb.de) (great side by the way!).
Can anybody help me or give me some idea respectively?
Thanks a lot
Phai

Re: Embed the XSPF-Player in the Sidebar?

Posted: Mon Feb 12, 2007 1:57 pm
by garvinhicking
Hi!

You can embed any custom HTML code you like using a "HTML Nugget" sidebar plugin, did you try that?

Best regards,
Garvin

Posted: Mon Feb 12, 2007 4:07 pm
by Phaidros
Ah, Garvin again :D
Thanks a lot...no, sorry haven't tried out with that plugin yet..sorry.
Next time going to surch better before... :oops:
Now we'll see if i manage that...
Thanks anyway...
Step

Posted: Mon Feb 12, 2007 6:34 pm
by Phaidros
Hi,
Mmmh, no..:shock: .if i inlude the html-code using the appropriate sidebar-plugin all i get is exactly the same text (the code) AS TEXT.
The same happens with the event-plugin ("HTML-Code für den head-Bereich (HTML-Kopf Klotz)"). In that case the "html-code" appears above the banner...I mean...it happens with ANY html-code...not only with that one i use for the player...
HÄ?
Don't have any idea
Can YOU explain me why that happens?
Thanks a lot!
Step

Posted: Mon Feb 12, 2007 7:09 pm
by Phaidros
OK...sorry...found it out..
SORRY!! :oops: :oops: :oops:
had the Editor open..and not the html...
Thanks anyway

Posted: Tue Mar 06, 2007 7:38 pm
by bethcrook
Did you get this to work? I cannot get mine to work. I'm entering the code in HTML code, but when I view the page, It's just giving the tag "this text will be replaced by the flash music player" and no player is showing. I also tried moving the files to another location and changing the code to give a full placement address, but still a no go :(

Posted: Wed Mar 07, 2007 3:44 am
by judebert
I've successfully embedded it into entries with no problem. If you give us a link to your page, we can check a few common errors.

Posted: Wed Mar 07, 2007 5:07 am
by bethcrook
http://www.elizabethcrook.com/blog

It's located on the bottom of the right side-bar. It's just text for now.

Posted: Thu Mar 08, 2007 3:21 am
by judebert
I got a 404 when I tried to load your page.

Posted: Thu Mar 08, 2007 3:29 am
by bethcrook
Ack! Sorry about that!

www.elizabethcrookphoto.com/blog

Posted: Thu Mar 08, 2007 4:13 am
by judebert
Weird; I've never seen the JavaScript version before.

Try this embedded version instead:

Code: Select all

<embed 
src="http://www.elizabethcrookphoto.com/blog/Player/xspf-player-slim.swf?
playlist_url=http://www.elizabethcrookphoto.com/blog/Player/playlist.xml
&player_title=XSPF%20Media%20Player" 
quality="high" bgcolor="#E6E6E6" name="xspf_player_slim" 
allowscriptaccess="sameDomain" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" 
align="middle" height="50" width="400">
</div>
It looks like you're not using the XSPF player, though. It requires the playlist in .xspf format. All the paths are OK, but that JavaScript you're using is formidable. The only thing I can see is that the swfobject.js defaults to "detectflash" as its key; try changing the two occurrences of "flashPlayer" in your original code to "detectflash" and see if that makes any difference.

In fact, looking at it more closely, I'm almost certain that's the problem. It's looking for _b, which is the 11th argument to new SWFObject(). You don't have an 11th argument, so it's using "detectflash". You don't have any detectflash, so it's not making any substitutions. Forget my embed code from above; it's for XSPF player only. Change both instances of "flashPlayer" to "detectflash" instead.

Posted: Thu Mar 08, 2007 3:46 pm
by tchirou
If anyone is interested, I installed in a html nugget the famous Radio Blog and it works very fine.

Tell me if you need some advice or want to take a look at mine.