Sha256: c4e3b2e9c31fabe40c8146ebd6170a348689b9feca5045b12cc84254cb3b7006
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
require_relative "meta_data_maker" module FLV module Edit module Processor class Update < Base desc "Updates FLV with an onMetaTag event" def initialize(source=nil, options={}) super @meta_data_maker = MetaDataMaker.new(source.dup, options) end def each(&block) @meta_data_maker.each {} ensure # even if each throws, we better call super otherwise we won't be synchronized anymore! super end absorb :on_meta_data, :on_last_second def on_header(header) dispatch_instead header, Tag.new(0, @meta_data_maker.meta_data) 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/update.rb |
flvedit-0.6.1 | lib/flv/edit/processor/update.rb |