Sha256: 7003f22bf6530cd82268360c8a182ea69e496e3508d0628afcde36b3b59b4308
Contents?: true
Size: 708 Bytes
Versions: 3
Compression:
Stored size: 708 Bytes
Contents
module DashTimelineValidator class AdaptationSet def self.process(context, adaptation_set, index) as_result = {} as_result["name"] = "AdaptationSet-#{index}" DashTimelineValidator::Report.fill_report(as_result, adaptation_set, "mimeType") DashTimelineValidator::Report.fill_report(as_result, adaptation_set, "contentType") all_representations = adaptation_set.nodes.select { |n| n.name == "Representation" } as_result["representations"] = all_representations.each_with_index.map do |representation, i| DashTimelineValidator::Representation.process({root: context[:root], previous: as_result}, representation, i) end as_result end end end
Version data entries
3 entries across 3 versions & 1 rubygems