3
4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/dash_timeline_validator/adaptation_set.rb', line 3
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
|