Sha256: 24ae4c4fd4f829509f2a840c4448331a1f0b118b3a6f6d5f778e6e92a2b5ea1f

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

module Bitmovin::Encoding::Manifests
  class HlsVariantStreamList < Bitmovin::Resource
    init "streams"
    attr_accessor :manifest_id

    def initialize(manifest_id)
      @manifest_id = manifest_id
      self.class.init(File.join("/v1/encoding/manifests/", manifest_id, "streams"))
      #super(hsh)
    end

    def list(limit = 100, offset = 0)
      path = File.join("/v1/encoding/manifests/hls", @manifest_id, self.class.resource_path)
      response = Bitmovin.client.get(path, { limit: limit, offset: offset })
      result(response)['items'].map { |item| self.class.klass.new(@manifest_id, item) }
    end

    def build(hash = {})
      HlsVariantStream.new(@manifest_id, hash)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bitmovin-ruby-0.5.0 lib/bitmovin/encoding/manifests/hls_variant_stream_list.rb
bitmovin-ruby-0.4.0 lib/bitmovin/encoding/manifests/hls_variant_stream_list.rb