Gst::Pipeline : iterate : no such method

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

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

In [email protected]
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”
on Fri, 22 Feb 2008 22:12:21 +0100,
Philipp G. [email protected] wrote:

Regards,
Ajith

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

Use GLib::MainLoop#run.

Thanks,

kou

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 [email protected]
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”
on Fri, 22 Feb 2008 22:12:21 +0100,
Philipp G. [email protected] wrote:

Regards,
Ajith

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

Use GLib::MainLoop#run.

Thanks,

kou

jepp mainloop#run is available, and working

thanks

Kouhei S. wrote:

In [email protected]
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”
on Fri, 22 Feb 2008 22:12:21 +0100,
Philipp G. [email protected] wrote:

Regards,
Ajith

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

Use GLib::MainLoop#run.

Thanks,

kou

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method”
on Sun, 27 Jul 2008 10:39:59 +0200,
Eugene M. [email protected] 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