Class: MediaInfoNative::BaseStream

Inherits:
Object
  • Object
show all
Extended by:
AttrReaders
Defined in:
lib/mediainfo-native/base_stream.rb,
ext/mediainfo_native/basestream.cpp

Constant Summary collapse

TYPES =
[:general, :video, :audio, :image, :menu, :text, :other]

Instance Method Summary collapse

Methods included from AttrReaders

mediainfo_attr_reader, mediainfo_date_reader, mediainfo_duration_reader, mediainfo_int_reader, supported_attribute, supported_attributes

Instance Method Details

#stream_typeObject



7
8
9
# File 'lib/mediainfo-native/base_stream.rb', line 7

def stream_type
  /(\w+)Stream/.match(self.class.name)[1].downcase.to_sym
end