Sha256: 277f60a498e508d94402d44f47f303c079132acfc9fc8fd73189cdf633d7543e

Contents?: true

Size: 277 Bytes

Versions: 15

Compression:

Stored size: 277 Bytes

Contents

module Hydra
  module Derivatives
    class Audio < Processor
      include Ffmpeg

      protected

      def new_mime_type(format)
        case format
        when 'mp3'
          "audio/mpeg"
        else
          "audio/#{format}"
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hydra-derivatives-1.2.1 lib/hydra/derivatives/audio.rb
hydra-derivatives-1.2.0 lib/hydra/derivatives/audio.rb
hydra-derivatives-2.0.0 lib/hydra/derivatives/audio.rb
hydra-derivatives-1.1.0 lib/hydra/derivatives/audio.rb
hydra-derivatives-1.0.0 lib/hydra/derivatives/audio.rb
hydra-derivatives-1.0.0.rc1 lib/hydra/derivatives/audio.rb
hydra-derivatives-1.0.0.beta1 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.1.1 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.1.0 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.8 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.7 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.6 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.5 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.4 lib/hydra/derivatives/audio.rb
hydra-derivatives-0.0.3 lib/hydra/derivatives/audio.rb