Forum: Ruby-Gnome 2 Gst::Pipeline : iterate : no such method

Posted by Max Payne (Guest)
on 2007-08-18 08:30
(Received via mailing list)
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
Posted by Philipp Goetzinger (pgoetzin)
on 2008-02-22 22:12
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
Posted by Kouhei Sutou (Guest)
on 2008-02-23 01:24
(Received via mailing list)
In <06fc0c5a919ba26fa69d628480a483fd@ruby-forum.com>
  "Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method" 
on Fri, 22 Feb 2008 22:12:21 +0100,
  Philipp Goetzinger <ruby-forum-incoming@andreas-s.net> wrote:

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

Use GLib::MainLoop#run.


Thanks,
--
kou
Posted by Philipp Goetzinger (pgoetzin)
on 2008-03-03 13:24
jepp mainloop#run is available, and working

thanks


Kouhei Sutou wrote:
> In <06fc0c5a919ba26fa69d628480a483fd@ruby-forum.com>
>   "Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method" 
> on Fri, 22 Feb 2008 22:12:21 +0100,
>   Philipp Goetzinger <ruby-forum-incoming@andreas-s.net> wrote:
> 
>> > Regards,
>> > Ajith
>> 
>> Hello Ajith,
>> i have the same problem :-/
>> did u finde any solution ?
> 
> Use GLib::MainLoop#run.
> 
> 
> Thanks,
> --
> kou
Posted by Eugene Miller (erm)
on 2008-07-27 10:39
>> 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 Goetzinger wrote:
> 
> jepp mainloop#run is available, and working
> 
> thanks
> 
> 
> Kouhei Sutou wrote:
>> In <06fc0c5a919ba26fa69d628480a483fd@ruby-forum.com>
>>   "Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method" 
>> on Fri, 22 Feb 2008 22:12:21 +0100,
>>   Philipp Goetzinger <ruby-forum-incoming@andreas-s.net> wrote:
>> 
>>> > Regards,
>>> > Ajith
>>> 
>>> Hello Ajith,
>>> i have the same problem :-/
>>> did u finde any solution ?
>> 
>> Use GLib::MainLoop#run.
>> 
>> 
>> Thanks,
>> --
>> kou
Posted by Kouhei Sutou (Guest)
on 2008-08-02 08:43
(Received via mailing list)
Hi,

In <ad7de09a0d78e6b1593862f01d65c9b5@ruby-forum.com>
  "Re: [ruby-gnome2-devel-en] Gst::Pipeline : iterate : no such method" 
on Sun, 27 Jul 2008 10:39:59 +0200,
  Eugene Miller <ruby-forum-incoming@andreas-s.net> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.