# Gstreamer - where did get\_by\_name go?

**URL:** <https://www.ruby-forum.com/t/gstreamer-where-did-get-by-name-go/155981>\
**Category:** Ruby-Gnome 2\
**Created:** [December 18, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/gstreamer-where-did-get-by-name-go/155981 "2008-12-18T22:01:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BjSSSSrn\_Arild\_MSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@BjSSSSrn\_Arild\_MSSS](https://www.ruby-forum.com/u/BjSSSSrn_Arild_MSSS)\
**Post date:** [December 18, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/gstreamer-where-did-get-by-name-go/155981/1 "2008-12-18T22:01:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BjSSSSrn\_Arild\_MSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@BjSSSSrn\_Arild\_MSSS](https://www.ruby-forum.com/u/BjSSSSrn_Arild_MSSS)\
**Post date:** [December 23, 2008, 10:34am UTC](https://www.ruby-forum.com/t/gstreamer-where-did-get-by-name-go/155981/2 "2008-12-23T10:34:16Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto: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](mailto: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
