Class: ActiveVlc::LibVlc::Media
- Inherits:
-
Object
- Object
- ActiveVlc::LibVlc::Media
- Defined in:
- lib/activevlc/libvlc/media.rb
Instance Attribute Summary collapse
-
#mrl ⇒ Object
readonly
Returns the value of attribute mrl.
-
#ptr ⇒ Object
readonly
Returns the value of attribute ptr.
Instance Method Summary collapse
- #<<(option) ⇒ Object
- #event_manager ⇒ Object
-
#initialize(ptr, mrl) ⇒ Media
constructor
A new instance of Media.
Constructor Details
Instance Attribute Details
#mrl ⇒ Object (readonly)
Returns the value of attribute mrl.
13 14 15 |
# File 'lib/activevlc/libvlc/media.rb', line 13 def mrl @mrl end |
#ptr ⇒ Object (readonly)
Returns the value of attribute ptr.
13 14 15 |
# File 'lib/activevlc/libvlc/media.rb', line 13 def ptr @ptr end |
Instance Method Details
#<<(option) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/activevlc/libvlc/media.rb', line 20 def <<(option) raise "option must be a String" unless option.is_a?(String) Api.libvlc_media_add_option(@ptr, option) self end |
#event_manager ⇒ Object
27 28 29 |
# File 'lib/activevlc/libvlc/media.rb', line 27 def event_manager EventManager.new Api.libvlc_media_event_manager(@ptr) end |