Sha256: 0261d26c45f1d93bc2ddf1120736cd8bac57c2febeb4ee0539e12eeb59bbf5f7
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
module FLV module Edit module Processor class Reader < Base def initialize(*) super rewind raise "Oups, Filenames were #{@options[:files].inspect}" if @options[:files].include? nil raise "Please specify at least one filename" if @options[:files].empty? end def has_next_file? @to_process > 0 end def rewind @to_process = @options[:files].length end def process_next_file raise IndexError, "No more filenames to process" unless has_next_file? @to_process -= 1 FLV::File.open(@options[:files][-1- @to_process]) do |f| dispatch_chunks(f) end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
marcandre-flvedit-0.6.1 | lib/flv/edit/processor/reader.rb |
flvedit-0.6.1 | lib/flv/edit/processor/reader.rb |