[ruby-gnome2-doc-cvs] [Hiki] create - tut-gst-bins-create

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2004年 2月 28日 (土) 02:43:47 JST


-------------------------
REMOTE_ADDR = 217.117.55.140
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/?tut-gst-bins-create
-------------------------
= Creating Bins

Bins are created in the same way that other elements are created. ie. using an element factory, or any of the associated convenience methods:

  # create a new bin called 'mybin'. this bin will be only for organizational purposes; a normal
  # Gst::Bin doesn't affect plan generation
  bin = Gst::ElementFactory.make("bin", "mybin")

  # create a new pipeline
  pipeline = Gst::ElementFactory.make("pipeline", "mypipe")

  # create a new thread, and give it a unique name
  thread = Gst::ElementFactory.make("thread")

  # the core bins (Gst::Bin, Gst::Thread, Gst::Pipeline) also have convenience APIs,
  # Gst::<bintype>.new. These are equivalent to the Gst::ElementFactory.make syntax.
  bin2 = Gst::Bin.new("mybin")
  pipeline2 = Gst::Pipeline.new("mypipe")
  thread2 = Gst::Thread.new





ruby-gnome2-cvs メーリングリストの案内
Back to archive index