Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations
- From: EmbeddedMicro <justin embeddedmicro com>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations
- Date: Wed, 29 Apr 2009 15:27:47 -0700 (PDT)
Thanks a lot for that example!
However when I run it I get the error.
File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 24,
in filter_inserted
p.get_bus().connect('message', self.on_message)
AttributeError: 'NoneType' object has no attribute 'connect'
Jonathan Matthew-4 wrote:
>
> On Sun, Apr 26, 2009 at 03:47:48PM -0700, EmbeddedMicro wrote:
>>
>> I under stand this a bit more. I read up on the spectrum element, but I
>> can't
>> figure out how to get the messages it sends out. This is what I have now,
>> it
>> does not work.
>>
>> > ...
>>
>> Is the bus stuff even remotely correct?
>
> Not really, but the main problem was that there was no way for plugins
> to attach message handlers to the bus. I've just committed a small change
> to make the bus emit the 'message' signals you were trying to use
> (commit 535c2437).
>
> Other things: it's easier to use the 'filter' interface for this, as you
> don't have to create a sink element too; you need to wait for the
> filter/tee to
> actually be added to the pipeline, using the 'filter-inserted' signal; and
> you
> need to walk up the pipeline structure to find the top level bus to
> process
> messages
>
> Here's a simple plugin that adds a spectrum element into the pipeline and
> prints the data (note that you need to run rhythmbox with '-D py' for
> python
> print statements to show up):
> http://www.gnome.org/~jmatthew/filterdemo.py
>
>
> _______________________________________________
> rhythmbox-devel mailing list
> rhythmbox-devel gnome org
> http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
>
>
--
View this message in context: http://www.nabble.com/Python-Plugin-LED-Cube-Visualizations-tp23117783p23302413.html
Sent from the Gnome - Rhythmbox - Dev mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]