Sha256: 4466d4027254c7d7ab58fabf672e94d6471e429e3ac766915012efebc7340300
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 Bytes
Contents
module Bitmovin::Encoding::Manifests class ManifestResource < Bitmovin::Resource def initialize(hash = {}) hsh = ActiveSupport::HashWithIndifferentAccess.new(underscore_hash(hash)) muxing_type = self.class.name.demodulize.gsub(/(.*)Muxing/, '\1').downcase self.class.init(File.join("/v1/encoding/manifests/", encoding_id, "muxings", muxing_type)) super(hsh) @outputs = (hsh[:outputs] || []).map do |output| Bitmovin::Encoding::Encodings::StreamOutput.new(encoding_id, @id, output) end @streams = (hsh[:streams] || []).map do |stream| stream[:stream_id] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems