Class: MP4::Layout::Ftyp
Instance Attribute Summary
Attributes inherited from Atom
#cache, #media_cache, #track_id
Instance Method Summary collapse
Methods inherited from Atom
generate, #generate, #initialize
Constructor Details
This class inherits a constructor from MP4::Layout::Atom
Instance Method Details
#binary_content ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/mp4/layout/ftyp.rb', line 9 def binary_content @binary_content ||= MP4::Binary::Ftyp.new( major_brand: memoized_ftyp.fetch('major_brand'), minor_version: memoized_ftyp.fetch('minor_version'), compatible_brands: memoized_ftyp.fetch('compatible_brands'), ).to_binary_s end |
#memoized_ftyp ⇒ Object
17 18 19 |
# File 'lib/mp4/layout/ftyp.rb', line 17 def memoized_ftyp @memoized_ftyp ||= cache.ftyp end |
#name ⇒ Object
5 6 7 |
# File 'lib/mp4/layout/ftyp.rb', line 5 def name 'ftyp' end |