[Plugin: Audio Player] Version 2.0 beta released
-
OK. At long last I finally have a beta release of version 2.0 ready for you to try out. You can download it here: https://www.wpaudioplayer.com.
Please post questions and feedback to this forum topic.
Martin
-
It’s a limitation of the Flash player security model. There is one way of making it work however. I think you need to place a special security policy file on the media server and tell Flash to look for it.
I’ll look into this and see if I can make it work.
Martin
Just upgraded my WP and WPMU blogs. Audio Player is still working in MU, but not standard WordPress.
When I print_r($wp_filter) I see all of the Audio Player stuff, but it seems to not be actually running the filter. Any idea?
Won’t work for version 1 or 2…
Any help will be appreciated, thanks.
It sounds like the plugin is not installed properly but I might be wrong.
Can you post a link to the blog where Audio Player isn’t working? It’s much easier for me to help if I can have a look.
Martin
Thanks for the quick response. Here’s an example. I can double check if its installed properly. I’ve had it both in the sub directory and above it. And the funny catch is that it works on my MU install!
From looking at both blogs, this is what I can say:
On the MU blog, the player works but is not installed as it should be (a javascript file is missing). I don’t know much about WP MU so maybe this is normal.
On the other blog, the plugin files are on the server but the plugin probably isn’t activated. You need to go to the plugins section (in your WP admin panel) and activate it. Once you do that it should work.
Martin
I have just released an updated version on wpaudioplayer.com. The update includes an option to allow for policy files.
You can find simple instructions on the Frequently asked questions page.
Let me know if it solves your ID3 problem.
Martin
The plugin is most definitely activated. I’ve written a few low level plugins, I’m not a total noob ??
So the incorrect install is working? Odd…
Here’s a print_r of the_content portion my $wp_filter array after including header.php
Array ( [the_content] => Array ( [10] => Array ( [wptexturize] => Array ( [function] => wptexturize [accepted_args] => 1 ) [convert_smilies] => Array ( [function] => convert_smilies [accepted_args] => 1 ) [convert_chars] => Array ( [function] => convert_chars [accepted_args] => 1 ) [prepend_attachment] => Array ( [function] => prepend_attachment [accepted_args] => 1 ) [AudioPlayerprocessContent4] => Array ( [function] => Array ( [0] => AudioPlayer Object ( [optionsName] => AudioPlayer_options [version] => 2.0b2 [docURL] => https://www.1pixelout.net/code/audio-player-wordpress-plugin/ [textDomain] => audio-player [languageFileLoaded] => [pluginRoot] => https://www.citypaper.net/blogs/clog/wp-content/plugins/audio-player/ [playerURL] => https://www.citypaper.net/blogs/clog/wp-content/plugins/audio-player/assets/player.swf [audioRoot] => https://www.citypaper.net/blogs/clog/audio [audioAbsPath] => /home/phillycp/public_html/blogs/wordpress_2.5.1/audio [isCustomAudioRoot] => [colorKeys] => Array ( [0] => bg [1] => leftbg [2] => lefticon [3] => voltrack [4] => volslider [5] => rightbg [6] => rightbghover [7] => righticon [8] => righticonhover [9] => text [10] => track [11] => border [12] => loader [13] => tracker [14] => skip ) [defaultColorScheme] => Array ( [bg] => E5E5E5 [text] => 333333 [leftbg] => CCCCCC [lefticon] => 333333 [volslider] => 666666 [voltrack] => FFFFFF [rightbg] => B4B4B4 [rightbghover] => 999999 [righticon] => 333333 [righticonhover] => FFFFFF [track] => FFFFFF [loader] => 009900 [border] => CCCCCC [tracker] => DDDDDD [skip] => 666666 [pagebg] => FFFFFF [transparentpagebg] => 1 ) [instances] => Array ( ) [playerID] => 0 [inExcerpt] => [options] => Array ( [audioFolder] => /audio [playerWidth] => 290 [enableAnimation] => 1 [showRemaining] => [encodeSource] => 1 [behaviour] => Array ( [0] => default ) [rssAlternate] => nothing [rssCustomAlternate] => [See post to listen to audio] [excerptAlternate] => [Audio clip: view full post to listen] [introClip] => [outroClip] => [initialVolume] => 60 [bufferTime] => 5 [noInfo] => [colorScheme] => Array ( [bg] => ff8800 [text] => ffffff [leftbg] => ffeac0 [lefticon] => ff8800 [volslider] => ff8800 [voltrack] => FFFFFF [rightbg] => ffeac0 [rightbghover] => 000099 [righticon] => ff8800 [righticonhover] => ffffff [track] => FFFFFF [loader] => ffffff [border] => 000099 [tracker] => DDDDDD [skip] => ffffff [pagebg] => FFFFFF [transparentpagebg] => 1 ) [version] => 2.0b2 ) [wp_filter_id] => 4 ) [1] => processContent ) [accepted_args] => 1 ) ) [11] => Array ( [do_shortcode] => Array ( [function] => do_shortcode [accepted_args] => 1 ) ) )
OK. Very strange indeed. When activated, Audio Player inserts some code in the blog header. However, on your blog, this code is missing (should be a couple of script tags). Maybe you are using a theme that doesn’t call the wp-head function in the header. In your theme header.php file you should find a call to wp_head() just before the closing head tag, otherwise plugins cannot insert code in the head section. Can you check this?
However, this doesn’t explain why the [audio] syntax is not being replaced.
That print_r snippet you posted shows that you are using version 2.0b2. But when I check the files on your blog, I can only find version 1.2.3. can you confirm which version you installed? (on https://www.citypaper.net/blogs/clog/).
Martin
Thanks for bearing with me on this. I deactivated the plugin, removed the files and re-uploaded the beta 2 files. I made sure the wp_head function is being called… still nothing.
Love your plugin! 1.2.3 worked great – but after moving to the latest 2beta3 I’m having a problem with formatting the text right.
It should look like this:
[Player here]
Song title I want to type below it.Instead, it looks like:
[Player here]
xxempty spacexx
xxempty spacexx
Song title I want to type below it.I opened Firebug and see that the problem is that it’s pulling a line-height of 20px from class ‘audioplayer-container’, but for the life of me I can’t find where to change it! There is no line-height declaration in any of the css files with the plugin as far as i can tell. I am putting the code into the HTML editor so there’s no extra spaces as far as the WSISWG editor may be concerned.
Any ideas?
Here is what firebug says when I highlight the player itself. I’ve checked style.css for my theme and there’s no line-height option:
#content p, #content .post ul li {style.css (line 129) color:#EAEAEA; font-family:Verdana,Helvetica,Sans-serif; font-size:13px; font-size-adjust:none; font-style:normal; font-variant:normal; font-weight:normal; line-height:20px; text-align:justify;
i resolved my issue by forcing through some ‘negative’ margin to bring the text back closer to the player.
<div style="margin-top:-10px;">'Song Title Here' by Artist</div>
I’m stumped. Everything looks in order as far as the install goes. I did notice however, that the required script tags are still not showing in the head section of your blog. You sure you added the call to wp_head() in there?
The only suggestions I can come up with are:
- Try disabling any other plugin you have installed. There could be some conflict going on (you probably checked this already)
- Check that your theme single.php file is using
the_content()
to output the post content - Also check that Audio Player is activated and that the “Replace [audio] syntax” option is ticked (bleeding obvious I know, but you never know)
Let me know how it goes. I want to fix this as much as you do. I don’t want to release an imperfect plugin. ??
Martin
I don’t think the line-height value you see in Firebug is responsible for the extra white space. I think what is happening is this: version 2.0 now wraps the player in a P tag. This will add white space around it. I did foresee some problems with this which you have just reported to me ?? I’m not sure exactly what I’ll do but the P tags are probably going to be scrapped. Keep an eye on wpaudioplayer.com for the next release.
Martin
Thanks for the updated version… that’s exactly what I needed! Thanks again for a great product.
- The topic ‘[Plugin: Audio Player] Version 2.0 beta released’ is closed to new replies.