Sha256: 94918c88955fc63f9ac4a9d15b17c2d26177c70d01d2c76b9dde6bcea5f49f08

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

module Abrizer
  module InformationHelpers

    def duration
      informer = Abrizer::FfprobeInformer.new(mp4_filepath)
      informer.duration.to_f
    end

    def max_width
      @adaptations.last.width
    end

    def min_width
      @adaptations.first.width
    end

    def max_height
      @adaptations.last.height
    end

    def min_height
      @adaptations.first.height
    end

    def mp4_width
      @adaptations[-2].width
    end

    def mp4_height
      @adaptations[-2].height
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abrizer-0.4.0 lib/abrizer/information_helpers.rb