Gstreamer - where did get_by_name go?


#1

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


#2

Hi,

In removed_email_address@domain.invalid
“[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” removed_email_address@domain.invalid 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