# Gst::Pipeline : iterate : no such method

**URL:** <https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392>\
**Category:** Ruby-Gnome 2\
**Created:** [August 18, 2007, 8:30am UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392 "2007-08-18T08:30:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [August 18, 2007, 8:30am UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/1 "2007-08-18T08:30:25Z")

</div>

Hi,

I was trying the Hello World tutorial for Ruby-Gstreamer. However, when  
I  
try to iterate over the pipeline at the end with pipeline.iterate, it  
says  
that the method was not found. However, the documentation says that the  
method does exist. How do I find out what to do now?

Regards,  
Ajith

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [February 22, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/2 "2008-02-22T22:12:21Z")

</div>

Max Payne wrote:

> Hi,
> 
> I was trying the Hello World tutorial for Ruby-Gstreamer. However, when  
> I  
> try to iterate over the pipeline at the end with pipeline.iterate, it  
> says  
> that the method was not found. However, the documentation says that the  
> method does exist. How do I find out what to do now?
> 
> Regards,  
> Ajith

Hello Ajith,  
i have the same problem :-/  
did u finde any solution ?

thx & bye  
Philipp

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [February 23, 2008, 1:24am UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/3 "2008-02-23T01:24:41Z")

</div>

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”  
on Fri, 22 Feb 2008 22:12:21 +0100,  
Philipp G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Regards,  
> > Ajith
> 
> Hello Ajith,  
> i have the same problem :-/  
> did u finde any solution ?

Use GLib::MainLoop#run.

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [July 27, 2008, 10:39am UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/4 "2008-07-27T10:39:59Z")

</div>

> > Use GLib::MainLoop#run.

mind giving a newbie the answer to this?

What exactly are you supposed to change:  
“while pipeline.iterate do end”  
to?

Thanks,  
Erm

Philipp G. wrote:

> jepp mainloop#run is available, and working
> 
> thanks
> 
> Kouhei S. wrote:
> 
> > In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > “Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”  
> > on Fri, 22 Feb 2008 22:12:21 +0100,  
> > Philipp G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > > Regards,  
> > > > Ajith
> > > 
> > > Hello Ajith,  
> > > i have the same problem :-/  
> > > did u finde any solution ?
> > 
> > Use GLib::MainLoop#run.
> > 
> > ## Thanks,
> > 
> > kou

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [March 3, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/5 "2008-03-03T13:24:34Z")

</div>

jepp mainloop#run is available, and working

thanks

Kouhei S. wrote:

> In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> “Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”  
> on Fri, 22 Feb 2008 22:12:21 +0100,  
> Philipp G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > Regards,  
> > > Ajith
> > 
> > Hello Ajith,  
> > i have the same problem :-/  
> > did u finde any solution ?
> 
> Use GLib::MainLoop#run.
> 
> ## Thanks,
> 
> kou

---

<div class="post-metadata">

**Author:** ![Max\_Payne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Max\_Payne](https://www.ruby-forum.com/u/Max_Payne)\
**Post date:** [August 2, 2008, 8:43am UTC](https://www.ruby-forum.com/t/gst-pipeline-iterate-no-such-method/112392/6 "2008-08-02T08:43:48Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”  
on Sun, 27 Jul 2008 10:39:59 +0200,  
Eugene M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > Use GLib::MainLoop#run.
> 
> mind giving a newbie the answer to this?
> 
> What exactly are you supposed to change:  
> “while pipeline.iterate do end”  
> to?

loop = GLib::MainLoop.new(nil, false)

pipeline.bus.add\_watch do |bus, message|  
case message.type  
when Gst::Message::EOS  
loop.quit  
when Gst::Message::ERROR  
p message.parse  
loop.quit  
end  
true  
end

pipeline.play  
loop.run

gstreamer/sample/audio-player.rb will help you.

## Thanks,

kou
