class FileData::IlstDataBoxParser

Parser for the 'data' box

Public Class Methods

parse(box) click to toggle source
# File lib/file_data/formats/mpeg4/box_parsers/ilst_data_box.rb, line 4
def self.parse(box)
  view = box.content_stream

  # TO DO - Currently a text value is always assumed...
  data_type = view.read_value(4)
  locale = view.read_value(4)
  value = view.read_ascii(view.remaining_bytes)

  DataBox.new(data_type, locale, value)
end