Class: Gst::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/gst/element.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](name) ⇒ Object



20
21
22
# File 'lib/gst/element.rb', line 20

def [](name)
  ElementFactory.make(name)
end

Instance Method Details

#>>(element) ⇒ Object



49
50
51
52
# File 'lib/gst/element.rb', line 49

def >>(element)
  link_element(element)
  element
end

#flagsObject



55
56
57
# File 'lib/gst/element.rb', line 55

def flags
  ElementFlags.new(flags_raw)
end

#flags_rawObject



54
# File 'lib/gst/element.rb', line 54

alias_method :flags_raw, :flags


42
43
44
45
46
# File 'lib/gst/element.rb', line 42

def link_elements(*elements)
  elements.each do |element|
    link_element(element)
  end
end

#pauseObject



33
34
35
# File 'lib/gst/element.rb', line 33

def pause
  set_state(State::PAUSED)
end

#playObject



37
38
39
# File 'lib/gst/element.rb', line 37

def play
  set_state(State::PLAYING)
end

#readyObject



29
30
31
# File 'lib/gst/element.rb', line 29

def ready
  set_state(State::READY)
end

#stopObject



25
26
27
# File 'lib/gst/element.rb', line 25

def stop
  set_state(State::NULL)
end