Class: M2TSParser::Appendix::ARIBString

Inherits:
BinaryParser::TemplateBase
  • Object
show all
Defined in:
lib/m2ts_parser/appendix/arib_string.rb

Instance Method Summary collapse

Instance Method Details

#content_descriptionObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/m2ts_parser/appendix/arib_string.rb', line 13

def content_description
  if to_s
    begin
      arib_str = TSparser::AribString.new(TSparser::Binary.new(to_s))
      return arib_str.to_utf_8
    rescue
      return "error"
    end
  else
    return ""
  end
end