PDA

View Full Version : For Other WordPress Users


MMJ
02-11-2006, 12:48 PM
Have any of you all downloaded a mod so you can add mp3's to your site? I've tried all that WP has to offer & when I try to play a song it bleeps through it/is done. Anybody know how to fix this? :confused:

BrandonK
02-11-2006, 12:52 PM
You have an mp3 player directly on your site?...or just mp3 files?

DrSuSE
02-11-2006, 01:10 PM
I've always thought little Flash mp3 players worked nicely for blog type uses. There are tons of them (both free and commercial) if you search Google, but one I've used a few times for friends is at http://musicplayer.sourceforge.net/

--DrSuSE

MMJ
02-11-2006, 01:15 PM
You have an mp3 player directly on your site?...or just mp3 files?

No see I installed plugins that had players. I also uploaded mp3 files directly to my site. Then when I tried to play the mp3 files on the player it bleeped through them...if it played them at all it was at 100 mph. So I took the plugins back off/now you won't see a player. But I tried several different plugins & it did the same thing with all of them. :mad:

2notch
02-11-2006, 06:52 PM
I use a WP flash player plugin by Boriel (http://www.boriel.com/?page_id=12) which is based on http://musicplayer.sourceforge.net/.

I have it embedded in the sidebar on one of my blogs (http://www.digitalwestex.com/blog/) and it works fine.

The fast playing problem may be due to your mp3's sample rate. The xspf player (musicplayer above) samples at 128kbs or higher, so a 64kbs mp3 will play really fast. You might try re-sampling yours at 128kbs.

NOTE: If you use this plugin, keep a close eye on your error logs. If you see this:
[error] PHP Warning: cannot yet handle MBCS in html_entity_decode()! in /home/yoursite/public_html/wordpress/wp-content/plugins/xspf_player.php on line 1180
then you can fix it by modifying the "xspf_player.php" file:

From Boriel:
The problem is on line 1180:
return htmlspecialchars(html_entity_decode($str, ENT_COMPAT, $charset));

Try replacing it with:
return htmlspecialchars($str);

This should work fine. The problem is that function html_entity_decode
is not well supported for PHP 4.x. Upgrading to PHP 5.x should fix the
problem.
This error will fill up your error log really fast if not corrected!

Hope this helps...
2

MMJ
02-11-2006, 08:02 PM
I use a WP flash player plugin by Boriel (http://www.boriel.com/?page_id=12) which is based on http://musicplayer.sourceforge.net/.

I have it embedded in the sidebar on one of my blogs (http://www.digitalwestex.com/blog/) and it works fine.

The fast playing problem may be due to your mp3's sample rate. The xspf player (musicplayer above) samples at 128kbs or higher, so a 64kbs mp3 will play really fast. You might try re-sampling yours at 128kbs.

NOTE: If you use this plugin, keep a close eye on your error logs. If you see this:
[error] PHP Warning: cannot yet handle MBCS in html_entity_decode()! in /home/yoursite/public_html/wordpress/wp-content/plugins/xspf_player.php on line 1180
then you can fix it by modifying the "xspf_player.php" file:

From Boriel:
The problem is on line 1180:
return htmlspecialchars(html_entity_decode($str, ENT_COMPAT, $charset));

Try replacing it with:
return htmlspecialchars($str);

This should work fine. The problem is that function html_entity_decode
is not well supported for PHP 4.x. Upgrading to PHP 5.x should fix the
problem.
This error will fill up your error log really fast if not corrected!

Hope this helps...
2

Thanks 2. :D