Embed the XSPF-Player in the Sidebar?

Discussion corner for Developers of Serendipity.
Post Reply
Phaidros
Regular
Posts: 19
Joined: Mon Jan 22, 2007 6:57 pm
Contact:

Embed the XSPF-Player in the Sidebar?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Embed the XSPF-Player in the Sidebar?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Phaidros
Regular
Posts: 19
Joined: Mon Jan 22, 2007 6:57 pm
Contact:

Post 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
Phaidros
Regular
Posts: 19
Joined: Mon Jan 22, 2007 6:57 pm
Contact:

Post 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
Phaidros
Regular
Posts: 19
Joined: Mon Jan 22, 2007 6:57 pm
Contact:

Post by Phaidros »

OK...sorry...found it out..
SORRY!! :oops: :oops: :oops:
had the Editor open..and not the html...
Thanks anyway
bethcrook
Regular
Posts: 13
Joined: Mon Jan 29, 2007 5:13 pm

Post 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 :(
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
bethcrook
Regular
Posts: 13
Joined: Mon Jan 29, 2007 5:13 pm

Post by bethcrook »

http://www.elizabethcrook.com/blog

It's located on the bottom of the right side-bar. It's just text for now.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I got a 404 when I tried to load your page.
Judebert
---
Website | Wishlist | PayPal
bethcrook
Regular
Posts: 13
Joined: Mon Jan 29, 2007 5:13 pm

Post by bethcrook »

Ack! Sorry about that!

www.elizabethcrookphoto.com/blog
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
tchirou
Regular
Posts: 29
Joined: Thu Feb 01, 2007 11:16 pm

Post 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.
Post Reply