Class: MP4::Layout::Mdat

Inherits:
Atom
  • Object
show all
Defined in:
lib/mp4/layout/mdat.rb

Instance Attribute Summary collapse

Attributes inherited from Atom

#cache, #media_cache, #track_id

Instance Method Summary collapse

Methods inherited from Atom

generate, #generate

Constructor Details

#initialize(cache, media_cache, opts = {}) ⇒ Mdat

Returns a new instance of Mdat.



7
8
9
10
# File 'lib/mp4/layout/mdat.rb', line 7

def initialize(cache, media_cache, opts = {})
  super(cache, media_cache, opts)
  @source = opts.fetch(:source)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



5
6
7
# File 'lib/mp4/layout/mdat.rb', line 5

def source
  @source
end