I am writing a plugin in python and I need to get a piece of code to run
every 1/2 second. It seems like I saw how to do this before but I can't seem
to find it again. Any help is great.
Thanks,
Justin
--
View this message in context:
http://www.nabble.com/Callback-every-1-2-second-tp24377780p24
It turns out that you can't sync it with python yet. So I am going to port my
plugin to C.
--
View this message in context:
http://www.nabble.com/Python-Plugin-LED-Cube-Visualizations-tp23117783p23416741.html
Sent from the Gnome - Rhythmbox - Dev mailing list archive at Nabble.com.
I am trying to compile the sample C plugin in the rhythmbox source. The
problem is after I build it with 'make' and there are no errors, there is no
libsample.so file in .libs. I just have .la .a and .o files.
How can I make it make the .so file so I can try the plugin out.
Thanks,
Justin
--
V
I have a general idea of what I need to do but I need to know how to get to
the pipeline clock. Anyone know how? I need something equivalent to this but
in python and for Rhythmbox.
sync_clock = gst_pipeline_get_clock (GST_PIPELINE (bin));
bin is a pipeline.
--
View this message in context:
htt
I have it working with the cube now! Thanks a lot!
You were right about the magnitude part, but the source part didn't work
quite right.
Here's the working code.
import rb
> import gst
> import serial
> import array
>
> class LEDcube(rb.Plugin):
>
> def activate(self, shell):
>
Another question, how do I isolate the magnitude part. I though it would have
been something like message.magnitude but that does not work.
Also I am getting messages on play/pause. How can I get only the messages
that contain the magnitude info.
Thanks,
Justin
--
View this message in context:
h time, ie
spectrum8.
Is there a max value that the magnitude part can contain. I know the minimum
is set with the threshold property, but I see nothing on a max value.
Jonathan Matthew-4 wrote:
>
> On Thu, Apr 30, 2009 at 07:10:47AM -0700, EmbeddedMicro wrote:
>>
>> Now I
ustin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 22,
in deactivate
player.props.bus.disconnect(self.bus_id)
AttributeError: 'gobject.GProps' object has no attribute 'bus'
Thanks,
Justin
Jonathan Matthew-4 wrote:
>
> On Wed, Apr 29, 2009 at 03:2
ttribute '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
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.
import rhythmdb, rb
> import serial
> import gst
>
> class LEDcube(rb.Plugin):
>
> def __init__(self):
>
I'm having a hard time with this. I believe I have the level and spectrum
elements set up correctly, but I can't figure out how to use them. For
example say I have this.
import rhythmdb, rb
> import gobject, gtk
> import serial
> import gst
>
> class LEDcube(rb.Plugin):
>
> def __init__(s
EmbeddedMicro wrote:
>
> shell.get_player().props.player.add_tee_element(b)
> AttributeError: '__main__.RBPlayerGst' object has no attribute
> 'add_tee_element'
>
> Is the guide wrong? How do I add the elements?
>
It looks like it should be
shell
roblem though. When I try to run it I get
shell.get_player().props.player.add_tee_element(b)
AttributeError: '__main__.RBPlayerGst' object has no attribute
'add_tee_element'
Is the guide wrong? How do I add the elements?
Also what's a GStreamer sink plugin?
Thanks a lot,
Justin Rajewski
J
I build and sell RGB LED cubes. The newest version has a serial interface
that I would like to utilise using Rhythmbox. I know C, but I am using
Python (for the first time) as it is easier.
So far I have the plugin set up so it sends "Hello" over the serial port
when it is started and that works
14 matches
Mail list logo