Class: BMFF::Box::XMLMetaDataSampleEntry
- Inherits:
-
MetaDataSampleEntry
- Object
- Base
- SampleEntry
- MetaDataSampleEntry
- BMFF::Box::XMLMetaDataSampleEntry
- Includes:
- Container
- Defined in:
- lib/bmff/box/xml_meta_data_sample_entry.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#bit_rate_box ⇒ Object
Returns the value of attribute bit_rate_box.
-
#content_encoding ⇒ Object
Returns the value of attribute content_encoding.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#schema_location ⇒ Object
Returns the value of attribute schema_location.
Attributes included from Container
Attributes inherited from SampleEntry
#data_reference_index, #reserved1
Attributes inherited from Base
#io, #largesize, #offset, #parent, #size, #type, #usertype
Instance Method Summary collapse
Methods included from Container
#add_child, #container?, #find, #find_all, #parse_children, #select_descendants
Methods inherited from Base
#actual_size, #container?, #eob?, #parse, register_box, #remaining_size, #seek_to_end
Instance Attribute Details
#bit_rate_box ⇒ Object
Returns the value of attribute bit_rate_box.
5 6 7 |
# File 'lib/bmff/box/xml_meta_data_sample_entry.rb', line 5 def bit_rate_box @bit_rate_box end |
#content_encoding ⇒ Object
Returns the value of attribute content_encoding.
5 6 7 |
# File 'lib/bmff/box/xml_meta_data_sample_entry.rb', line 5 def content_encoding @content_encoding end |
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/bmff/box/xml_meta_data_sample_entry.rb', line 5 def namespace @namespace end |
#schema_location ⇒ Object
Returns the value of attribute schema_location.
5 6 7 |
# File 'lib/bmff/box/xml_meta_data_sample_entry.rb', line 5 def schema_location @schema_location end |
Instance Method Details
#parse_data ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bmff/box/xml_meta_data_sample_entry.rb', line 9 def parse_data super @content_encoding = io.get_null_terminated_string unless eob? @namespace = io.get_null_terminated_string unless eob? @schema_location = io.get_null_terminated_string unless eob? unless eob? @bit_rate_box = BMFF::Box.get_box(io, self, BMFF::Box::BitRate) add_child @bit_rate_box end end |