Recent Topics

Music player for 2.4

Started by on Feb 08, 2008 – Contents updated: Feb 08, 2008

Feb 08, 2008 04:11    

What's the best way to have a song play in a post in 2.4?

Feb 08, 2008 18:04

You can also put the url to your mp3 in the "post url" box ( or whatever it's called ) and select "podcast" as your post type ....... but it's nowhere near as cool as our plugin ;)

¥

Feb 09, 2008 02:07

I installed it. How do I use it?

Feb 09, 2008 02:16

With the AM plugins, the sourcecode is the manual. They should take notice of Wonder Winds pre- and aftersales.

<!-- amAudioPlayer song.mp3 -->


For the location of the song, see the plugin settings

Good luck

Feb 09, 2008 06:55

I got this:

Fatal error: Call to undefined method am_audio_player_plugin::the_plugin_url() in /home/nelsongu/public_html/plugins/am_audio_player_plugin/_am_audio_player.plugin.php on line 264

Feb 09, 2008 11:33

Hmmm, I'm sure I have a version that works in the 2.4 series, I'll try and dig it out for you ;)

¥

Feb 12, 2008 12:08

Fatal error: Call to undefined function: the_plugin_url() in /home/hemmi3/public_html/blog/plugins/am_audio_player_plugin/_am_audio_player.plugin.php on line 264

Feb 12, 2008 12:21

Ok, that's weird because the zip should have updated ..... meanders off to check :-S

¥

*edit*
This time the zip is updated ( it should show version 2.2 ) ;)

Feb 12, 2008 13:14

Yippee, it works.
Well done ¥åßßå. It's a nice plugin.

--F

Feb 12, 2008 13:20

Thanks ;)

I guess it's long overdue a proper write up and adding to BOPIT huh? :P

¥

Feb 12, 2008 13:22

I did add it to the plugin lists we maintain ;)

Feb 12, 2008 15:30

If you fancy having a play with enclosures then download the zip again ( v 2.4 ) and then add the following to your feed skins ( you may have to hit "reload plugins" for this to work )

			?>
			<?php
			// enclosure hack
			$Plugins->trigger_event( 'FeedEnclosure', $Item );
			?>
			<comments><?php echo $Item->get_single_url( 'auto' ); ?>#comments</comments>
		</item>

¥

Feb 12, 2008 20:29

some blonde code wrote:

<b>Warning</b>: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to astonishme.co.uk:80 in <b>/home/hemmi3/public_html/blog/plugins/am_audio_player_plugin/_am_audio_player.plugin.php</b> on line <b>343</b><br />
<enclosure url="http://astonishme.co.uk/media/normaal-demo.mp3" length="" type="audio/mpeg"/>

Ooops, sorry, looks like I left some hard coded tests in there :roll:

Just delete line 301 :

				$matches[1] = 'http://astonishme.co.uk/media/'.$matches[1];

zip updated ;)

¥

Feb 12, 2008 21:25

Ok
I'm still stuck with a "buffering" player using the latest updated version.
My .mp3 plays if I enter the url in the browser.

My path settings in the plugin are...
http://mysite.com/media/audio/
What I have in the post is

<!-- amAudioPlayer forharbs.mp3 -->

It's early down here so what have I missed?

Source code is...

<div class="bText">
	<object type="application/x-shockwave-flash" data="/plugins/am_audio_player_plugin/player.swf" width="290" height="24" id="audioplayer1"><br /><br />
<param name="movie" value="/plugins/am_audio_player_plugin/player.swf" /><br />
<param name="FlashVars"
value="playerID=1&amp;bg=0xeeeeee&amp;leftbg=0xdddddd&amp;lefticon=0x6666aa&amp;rightbg=0xcccccc
     &amp;rightbghover=0x999999&amp;righticon=0x444488&amp;righticonhover=0xffffff&amp;text=0x666666
     &amp;slider=0x6666ee&amp;track=0xffffff&amp;border=0x666666&amp;loader=0xaaaaee
     &amp;soundFile=http://wow-factor.com/media/audio/forharbs.mp3" /><param name="quality" value="high" /><br />
<param name="menu" value="false" /><br />
<param name="wmode" value="transparent" /></object></div>

*edit*
Cut long line for readability
Afwas

Feb 13, 2008 00:32

Let's compare:

<object type="application/x-shockwave-flash" data="/plugins/am_audio_player_plugin/player.swf" id="audioplayer1" height="24" width="290"><br><br>
<param name="movie" value="/plugins/am_audio_player_plugin/player.swf"><br>
<param name="FlashVars" 
value="playerID=1&amp;bg=0xeeeeee&amp;leftbg=0xdddddd&amp;lefticon=0x6666aa&amp;rightbg=0xcccccc
     &amp;rightbghover=0x999999&amp;righticon=0x444488&amp;righticonhover=0xffffff&amp;text=0x666666
     &amp;slider=0x6666ee&amp;track=0xffffff&amp;border=0x666666&amp;loader=0xaaaaee
     &amp;soundFile=http://www.blog.hemminga.net/media/normaal-demo.mp3"><param name="quality" value="high"><br>
<param name="menu" value="false"><br>
<param name="wmode" value="transparent"></object>

Feb 13, 2008 00:46

Afwas, apart from the enclosing div and the additional folder /audio, I see no difference!!!

Feb 13, 2008 00:55

John,
Do you have a link to a testpage?

Feb 13, 2008 01:15

It is supposed to work with external links

?? You have lost me there

Feb 13, 2008 01:22

According to the code I am able to play mp3 files from anywhere in the net. So I should be able to play your mp3 by doing:

<!-- amAudioPlayer http://wow-factor.com/media/audio/forharbs.mp3 -->


but that fails also on the buffering thing and not playing music.
That's why I think there may be something with the file not playing in this particular player.
My suggestion is try another file, or try to link to my file:

<!-- amAudioPlayer http://www.blog.hemminga.net/media/normaal-demo.mp3 -->

--F

Feb 13, 2008 01:29

Yep, that plays...!!!
I'll get another mp3 or swf and see what happens, though it is odd that it plays as a direct url in the browser?

Feb 13, 2008 01:39

Yep, I set up another .mp3 and it plays fine.

All comes down to an mp3 that the player doesn't like I guess

I'll delete the post and start over again

Thanks Afwas

Feb 13, 2008 01:45

Glad we sorted that out.
How come your tags are closed properly and mine are not?

Feb 13, 2008 01:50

How come your tags are closed properly and mine are not?

Mmmmm.... I don't understand. How are my "tags" any different to yours?

Feb 13, 2008 01:56

Your tags are closed with /> mine are > only.

Feb 13, 2008 02:01

This is from my index.main.php

<?php
				// List all tags attached to this post:
				$Item->tags( array(
						'before' =>         '<div class="bSmallTags">'.T_('Tags').': ',
						'after' =>          '</div>',
						'separator' =>      ', ',
					) );
			?>

Feb 13, 2008 02:05

LOL
I mean the HTML tags in the code from the Music Player plugin :)

Feb 13, 2008 02:11

ooops... :)

your tags are closed with /> ?

<object type="application/x-shockwave-flash" data="/plugins/am_audio_player_plugin/player.swf" width="290" height="24" id="audioplayer1"><br /><br />
<param name="movie" value="/plugins/am_audio_player_plugin/player.swf" /><br />
<param name="FlashVars" 
value="playerID=1&amp;bg=0xeeeeee&amp;leftbg=0xdddddd&amp;lefticon=0x6666aa&amp;rightbg=0xcccccc
     &amp;rightbghover=0x999999&amp;righticon=0x444488&amp;righticonhover=0xffffff&amp;text=0x666666
     &amp;slider=0x6666ee&amp;track=0xffffff&amp;border=0x666666&amp;loader=0xaaaaee
     &amp;soundFile=http://www.blog.hemminga.net/media/normaal-demo.mp3" /><param name="quality" value="high" /><br />
<param name="menu" value="false" /><br />
<param name="wmode" value="transparent" /></object>

Feb 14, 2008 04:24

Wonderful! Perfect!

I have a question. I'm writing something about B2evolution and would like your opinion. I like B2 better than Wordpress obviously, but I tend to recommend Wordpress to people because they'd have less tinkering to do. In other words, plug ins are more easily available, etc.

This plugin is a good example. What if you guys were on vacation or something?

Feb 14, 2008 12:42

Hi nelsonguirado,

You are in the Feature requests and Feedback section of the forum. What you are reading here has not much to dp with support, but with development. ¥åßßå only announced the plugin after we got it working. So I think this is still not a good example.
As for your concern with my holidays, thank you. I noticed last summer with the absence of EdB that a gap will automatically be filled with another bright star.
I am involved with B2evo because I fell in love with the code. The codebase is brilliant. But most will not be interested in that. They will look for skins (mainly) and plugins (only secundairy). And WP has the most and the best skins.
So answering that part, I do think B2evo tends to attract the pros as WP attracts the general user.

Good luck

(I may at one point cut this out of this topic and move it to the Chat section since it is interesting enough to attract a wider audience)

Feb 22, 2008 19:59

quick question: is there any way to adjust the volume in this player? i'm currently using xspf player slim, and it works perfectly... except that i keep getting error for <object> tags...

Feb 22, 2008 20:03

Quick answer: no, it's a very basic player although it does look rather modern.

Good luck

Feb 28, 2008 04:14

I tried to put the url to my mp3 in the "post url" box and selected "podcast" as your post type but nothing happened.

Has anybody got this to work?

Jul 04, 2008 04:00

Sometimes the song stays on "buffering" and doesn't play and other times it does play.


Form is loading...

b2evolution CMS – This forum is powered by b2evolution CMS, a complete engine for your website.