Class: Gst::Element
- Inherits:
-
Object
- Object
- Gst::Element
- Defined in:
- lib/gst/element.rb
Class Method Summary collapse
Instance Method Summary collapse
- #>>(element) ⇒ Object
- #flags ⇒ Object
- #flags_raw ⇒ Object
- #link_elements(*elements) ⇒ Object (also: #link)
- #pause ⇒ Object
- #play ⇒ Object
- #ready ⇒ Object
- #stop ⇒ Object
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 |
#flags ⇒ Object
55 56 57 |
# File 'lib/gst/element.rb', line 55 def flags ElementFlags.new(flags_raw) end |
#flags_raw ⇒ Object
54 |
# File 'lib/gst/element.rb', line 54 alias_method :flags_raw, :flags |
#link_elements(*elements) ⇒ Object Also known as: link
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 |
#pause ⇒ Object
33 34 35 |
# File 'lib/gst/element.rb', line 33 def pause set_state(State::PAUSED) end |
#play ⇒ Object
37 38 39 |
# File 'lib/gst/element.rb', line 37 def play set_state(State::PLAYING) end |
#ready ⇒ Object
29 30 31 |
# File 'lib/gst/element.rb', line 29 def ready set_state(State::READY) end |
#stop ⇒ Object
25 26 27 |
# File 'lib/gst/element.rb', line 25 def stop set_state(State::NULL) end |