Module: Bitmovin::Encoding::CodecConfigurations

Defined in:
lib/bitmovin/encoding/codec_configurations.rb,
lib/bitmovin/encoding/codec_configurations/aac_configuration.rb,
lib/bitmovin/encoding/codec_configurations/vp9_configuration.rb,
lib/bitmovin/encoding/codec_configurations/h264_configuration.rb,
lib/bitmovin/encoding/codec_configurations/h265_configuration.rb

Defined Under Namespace

Classes: AacConfiguration, H264Configuration, H265Configuration, Vp9Configuration

Class Method Summary collapse

Class Method Details

.list(limit = 100, offset = 0) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/bitmovin/encoding/codec_configurations.rb', line 3

def CodecConfigurations.list(limit = 100, offset = 0)
  response = Bitmovin.client.get '/v1/encoding/configurations', { limit: limit, offset: offset }
  Bitmovin::Helpers.result(response)['items'].map do |item|
    case item['type'].downcase
    when "h264"
      H264Configuration.new(item)
    when "h265"
      H265Configuration.new(item)
    when "aac"
      AacConfiguration.new(item)
    when "vp9" 
      Vp9Configuration.new(item)
    end
  end
end