On Mon Sep 22 12:44:56 2008, JQUELIN wrote:
Show quoted text> uh, you misunderstood me.
>
> status_msgs_to is *not* an event, it's a parameter telling the pococm
> which session to send status events to. ie, if your poe session (*your*
> poe session, not the pococm) is aliased to 'clutter' or 'display', then
> you should call the pococm with:
Ahhhh... Right then.
Show quoted text> but now take this one:
> #!/usr/bin/perl
> use POE qw{ Component::Client::MPD };
> my $me = 'foo';
[snip]
Unfortunately this example doesn't rone for me, I get:
Can't locate object method "date" via package
"Audio::MPD::Common::Item::Song" at
/usr/share/perl5/POE/Component/Client/MPD/Connection.pm line 112.
I'm using Audio::MPD 0.19.4, is a newer version required?
Show quoted text > ==> this time, note that we're waiting for mpd_connected event before
> firing the event 'current'. and in this case, it works correctly...
>
> [0] this needs to be documented
Documenting this better would be brilliant.
Show quoted text> [1] future versions of pococm will take care of this, and:
> - check that pococm is connected
> - send errors when trying to send a command while not connected
:)
Show quoted text> but i'm currently working on another module, so i don't have that much
> time for pococm. i guess i'll have some time later on, and complete it.
I can understand that!