@Throws(IOException::class) fun MP4Reader(fis: FileInputStream?) { if (null == fis) { log.warn("Reader was passed a null file") log.debug("{}", ToStringBuilder.reflectionToString(this)) } this.fis = MP4DataStream(fis) channel = fis.getChannel() decodeHeader() analyzeFrames() firstTags.add(createFileMeta()) createPreStreamingTags(0, false) }
Creates MP4 reader from file input stream , sets up metadata generation flag .