Class: Bootstrap
- Inherits:
-
Object
- Object
- Bootstrap
- Defined in:
- lib/glued/bootstrap.rb
Constant Summary collapse
- AFRA =
Top level
'afra'
- ABST =
Fragment random access for HTTP streaming
'abst'
- MOOV =
Bootstrap info for HTTP streaming
'moov'
- MOOF =
Container for structural metadata
'moof'
- MDAT =
Movie Fragment
'mdat'
- ASRT =
Inside ABST
'asrt'
- AFRT =
Segment run table box
'afrt'
Instance Attribute Summary collapse
-
#boxes ⇒ Object
readonly
Returns the value of attribute boxes.
Instance Method Summary collapse
- #fragments ⇒ Object
-
#initialize(data) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
-
#segments ⇒ Object
Fragment runt table box.
Constructor Details
Instance Attribute Details
#boxes ⇒ Object (readonly)
Returns the value of attribute boxes.
4 5 6 |
# File 'lib/glued/bootstrap.rb', line 4 def boxes @boxes end |
Instance Method Details
#fragments ⇒ Object
27 28 29 |
# File 'lib/glued/bootstrap.rb', line 27 def fragments @boxes.first.segment_run_tables.first.run_entry_table.first.fragments_per_segment end |
#segments ⇒ Object
Fragment runt table box
23 24 25 |
# File 'lib/glued/bootstrap.rb', line 23 def segments @boxes.first.segments end |