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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2004年 4月 1日 (木) 20:57:20 JST


-------------------------
REMOTE_ADDR = 195.207.101.112
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/en/?tut-gst-bins-create
-------------------------
  = Creating Bins
+ {{link("tut-gst-link-elements-intro", nil, "tut-gst", "tut-gst-bins-add)}}
  
  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