Sha256: 46eb6451550f716bf612b9194551194229218a027bb1abb9211e30d15ab1d0d4

Contents?: true

Size: 873 Bytes

Versions: 36

Compression:

Stored size: 873 Bytes

Contents

module Videojuicer
  class Preset
    include Videojuicer::Resource
    
    property :name,              String
    property :derived_type,      String
    property :created_at,        DateTime
    property :updated_at,        DateTime

    property :file_format,       String

    property :audio_bit_rate,    Integer  # bits per second
    property :audio_channels,    Integer
    property :audio_format,      String
    property :audio_sample_rate, Integer  # hertz

    property :video_bit_rate,    Integer  # bits per second
    property :video_format,      String
    property :video_frame_rate,  Float    # frames per second

    property :width,             Integer  # pixels
    property :height,            Integer  # pixels
    
    def self.formats
      response = instance_proxy.get(resource_route(:formats))
      JSON.parse(response.body)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
vj-sdk-0.8.2 lib/videojuicer/preset.rb
vj-sdk-0.8.0.1 lib/videojuicer/preset.rb
vj-sdk-0.7.14 lib/videojuicer/preset.rb
vj-sdk-0.7.13 lib/videojuicer/preset.rb
vj-sdk-0.7.11 lib/videojuicer/preset.rb
vj-sdk-0.7.10 lib/videojuicer/preset.rb
vj-sdk-0.7.9 lib/videojuicer/preset.rb
vj-sdk-0.7.8 lib/videojuicer/preset.rb
vj-sdk-0.7.7 lib/videojuicer/preset.rb
vj-sdk-0.7.6 lib/videojuicer/preset.rb
vj-sdk-0.7.5 lib/videojuicer/preset.rb
vj-sdk-0.7.4 lib/videojuicer/preset.rb
vj-sdk-0.7.3 lib/videojuicer/preset.rb
vj-sdk-0.7.2 lib/videojuicer/preset.rb
vj-sdk-0.7.1 lib/videojuicer/preset.rb
vj-sdk-0.7.0 lib/videojuicer/preset.rb
vj-sdk-0.6.9 lib/videojuicer/preset.rb
vj-sdk-0.6.8 lib/videojuicer/preset.rb
vj-sdk-0.6.7 lib/videojuicer/preset.rb
vj-sdk-0.6.5 lib/videojuicer/preset.rb