Gstreamer - where did get_by_name go?

Hi,

I’m trying to develop a simple audio player using Gstreamer, but I’m not
sure how I can adjust the volume during playback. I’ve linked the volume
element in the pipeline, and it works if i use #set_volume before the
playback starts. However, to adjust the volume during playback, I
think I
need to use pipeline.get_by_name to get access to the volume element.
This
functionality was present before, there’s old tests for it in the
“tests”
directory (i.e tc_xml.rb). Does anyone know how I can achieve this?

Regards,
Bjørn Arild Mæland

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Gstreamer - where did get_by_name go?” on Thu,
18 Dec 2008 21:57:41 +0100,
“Bjørn_Arild_Mæland” [email protected] wrote:

I’m trying to develop a simple audio player using Gstreamer, but I’m not sure
how I can adjust the volume during playback. I’ve linked the volume element in
the pipeline, and it works if i use #set_volume before the playback starts.
However, to adjust the volume during playback, I think I need to use
pipeline.get_by_name to get access to the volume element. This functionality
was present before, there’s old tests for it in the “tests” directory (i.e
tc_xml.rb). Does anyone know how I can achieve this?

Use Gst::Bin#get_child. It accepts String as child name to
be found.

Thanks,

kou