Beispiel #1
0
    def parse(self, xmlnode):
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.more_information_url = parse_attr_value(xmlnode, 'moreInformationURL', str)

        self.titles = parse_child_nodes(xmlnode, 'Title', str)
        self.sources = parse_child_nodes(xmlnode, 'Source', str)
        self.copyrights = parse_child_nodes(xmlnode, 'Copyright', str)
Beispiel #2
0
 def parse(self, xmlnode):
     self.event_value = parse_node_value(xmlnode, str)
     self.message_data = parse_attr_value(xmlnode, 'messageData', str)
     self.presentation_time = parse_attr_value(xmlnode, 'presentationTime',
                                               int)
     self.duration = parse_attr_value(xmlnode, 'duration', int)
     self.id = parse_attr_value(xmlnode, 'id', int)
Beispiel #3
0
    def parse(self, xmlnode):
        self.base_url_value = parse_node_value(xmlnode, str)

        self.service_location = parse_attr_value(xmlnode, 'serviceLocation', str)
        self.byte_range = parse_attr_value(xmlnode, 'byteRange', str)
        self.availability_time_offset = parse_attr_value(xmlnode, 'availabilityTimeOffset', float)
        self.availability_time_complete = parse_attr_value(xmlnode, 'availabilityTimeComplete', bool)
Beispiel #4
0
    def parse(self, xmlnode):
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.more_information_url = parse_attr_value(xmlnode, 'moreInformationURL', str)

        self.titles = parse_child_nodes(xmlnode, 'Title', str)
        self.sources = parse_child_nodes(xmlnode, 'Source', str)
        self.copyrights = parse_child_nodes(xmlnode, 'Copyright', str)
Beispiel #5
0
    def parse(self, xmlnode):
        self.base_url_value = parse_node_value(xmlnode, str)

        self.service_location = parse_attr_value(xmlnode, 'serviceLocation', str)
        self.byte_range = parse_attr_value(xmlnode, 'byteRange', str)
        self.availability_time_offset = parse_attr_value(xmlnode, 'availabilityTimeOffset', float)
        self.availability_time_complete = parse_attr_value(xmlnode, 'availabilityTimeComplete', bool)
Beispiel #6
0
def parse(self, xmlnode):
    self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
    self.value = parse_attr_value(xmlnode, 'value', str)
    self.id = parse_attr_value(xmlnode, 'id', str)
    self.key_id = parse_attr_value(xmlnode, 'ns2:default_KID', str)
    if (self.key_id == None):
        self.key_id = parse_attr_value(xmlnode, 'cenc:default_KID', str)
Beispiel #7
0
    def parse(self, xmlnode):
        MultipleSegmentBase.parse(self, xmlnode)

        self.media = parse_attr_value(xmlnode, 'media', str)
        self.index = parse_attr_value(xmlnode, 'index', str)
        self.initialization = parse_attr_value(xmlnode, 'initialization', str)
        self.bitstream_switching = parse_attr_value(xmlnode, 'bitstreamSwitching', str)
Beispiel #8
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.level = parse_attr_value(xmlnode, 'level', int)
        self.bandwidth = parse_attr_value(xmlnode, 'bandwidth', int)
        self.dependency_level = parse_attr_value(xmlnode, 'dependencyLevel', [int])
        self.content_component = parse_attr_value(xmlnode, 'contentComponent', [str])
Beispiel #9
0
    def parse(self, xmlnode):
        MultipleSegmentBase.parse(self, xmlnode)

        self.media = parse_attr_value(xmlnode, 'media', str)
        self.index = parse_attr_value(xmlnode, 'index', str)
        self.initialization = parse_attr_value(xmlnode, 'initialization', str)
        self.bitstream_switching = parse_attr_value(xmlnode, 'bitstreamSwitching', str)
Beispiel #10
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.level = parse_attr_value(xmlnode, 'level', int)
        self.bandwidth = parse_attr_value(xmlnode, 'bandwidth', int)
        self.dependency_level = parse_attr_value(xmlnode, 'dependencyLevel', [int])
        self.content_component = parse_attr_value(xmlnode, 'contentComponent', [str])
Beispiel #11
0
    def parse(self, xmlnode):
        SegmentBase.parse(self, xmlnode)

        self.duration = parse_attr_value(xmlnode, 'duration', int)
        self.start_number = parse_attr_value(xmlnode, 'startNumber', int)

        self.segment_timelines = parse_child_nodes(xmlnode, 'SegmentTimeline', SegmentTimeline)
        self.bitstream_switchings = parse_child_nodes(xmlnode, 'BitstreamSwitching', URL)
Beispiel #12
0
 def parse(self, xmlnode):
     self.marlin_content_ids = parse_child_nodes(xmlnode, 'MarlinContentIds', MarlinContentIds)
     self.cenc_default_KID = parse_attr_value(xmlnode, 'cenc:default_KID', str)
     self.xmlns_cenc = parse_attr_value(xmlnode, 'xmlns:cenc', str)
     self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
     self.value = parse_attr_value(xmlnode, 'value', str)
     self.id = parse_attr_value(xmlnode, 'id', str)
     self.widevine = parse_child_nodes(xmlnode, 'pssh', WidevineContentId)
Beispiel #13
0
    def parse(self, xmlnode):
        SegmentBase.parse(self, xmlnode)

        self.duration = parse_attr_value(xmlnode, 'duration', int)
        self.start_number = parse_attr_value(xmlnode, 'startNumber', int)

        self.segment_timelines = parse_child_nodes(xmlnode, 'SegmentTimeline', SegmentTimeline)
        self.bitstream_switchings = parse_child_nodes(xmlnode, 'BitstreamSwitching', URL)
Beispiel #14
0
    def parse(self, xmlnode):
        self.id = parse_attr_value(xmlnode, 'id', int)
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.content_type = parse_attr_value(xmlnode, 'contentType', str)
        self.par = parse_attr_value(xmlnode, 'par', str)

        self.accessibilities = parse_child_nodes(xmlnode, 'Accessibility', Descriptor)
        self.roles = parse_child_nodes(xmlnode, 'Role', Descriptor)
        self.ratings = parse_child_nodes(xmlnode, 'Rating', Descriptor)
        self.viewpoints = parse_child_nodes(xmlnode, 'Viewpoint', Descriptor)
Beispiel #15
0
    def parse(self, xmlnode):
        self.id = parse_attr_value(xmlnode, 'id', int)
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.content_type = parse_attr_value(xmlnode, 'contentType', str)
        self.par = parse_attr_value(xmlnode, 'par', str)

        self.accessibilities = parse_child_nodes(xmlnode, 'Accessibility', Descriptor)
        self.roles = parse_child_nodes(xmlnode, 'Role', Descriptor)
        self.ratings = parse_child_nodes(xmlnode, 'Rating', Descriptor)
        self.viewpoints = parse_child_nodes(xmlnode, 'Viewpoint', Descriptor)
Beispiel #16
0
    def parse(self, xmlnode):
        self.id = parse_attr_value(xmlnode, 'id', str)
        self.start = parse_attr_value(xmlnode, 'start', str)
        self.duration = parse_attr_value(xmlnode, 'duration', str)
        self.bitstream_switching = parse_attr_value(xmlnode, 'bitstreamSwitching', bool)

        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase', SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList', SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate', SegmentTemplate)
        self.asset_identifiers = parse_child_nodes(xmlnode, 'AssetIdentifier', Descriptor)
        self.event_streams = parse_child_nodes(xmlnode, 'EventStream', EventStream)
        self.adaptation_sets = parse_child_nodes(xmlnode, 'AdaptationSet', AdaptationSet)
        self.subsets = parse_child_nodes(xmlnode, 'Subset', Subset)
Beispiel #17
0
    def parse(self, xmlnode):
        self.id = parse_attr_value(xmlnode, 'id', str)
        self.start = parse_attr_value(xmlnode, 'start', str)
        self.duration = parse_attr_value(xmlnode, 'duration', str)
        self.bitstream_switching = parse_attr_value(xmlnode, 'bitstreamSwitching', bool)

        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase', SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList', SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate', SegmentTemplate)
        self.asset_identifiers = parse_child_nodes(xmlnode, 'AssetIdentifier', Descriptor)
        self.event_streams = parse_child_nodes(xmlnode, 'EventStream', EventStream)
        self.adaptation_sets = parse_child_nodes(xmlnode, 'AdaptationSet', AdaptationSet)
        self.subsets = parse_child_nodes(xmlnode, 'Subset', Subset)
Beispiel #18
0
 def parse(self, xmlnode):
     self.scheme_id_uri = parse_attr_value(xmlnode, "schemeIdUri", str)
     self.value = parse_attr_value(xmlnode, "value", str)
     self.id = parse_attr_value(xmlnode, "id", str)
     self.default_key_id = parse_attr_value(xmlnode, "default_KID", str)
     self.ns2_key_id = parse_attr_value(xmlnode, "ns2:default_KID", str)
     self.cenc_default_kid = parse_attr_value(xmlnode, "cenc:default_KID",
                                              str)
     self.pssh = parse_child_nodes(xmlnode, "cenc:pssh", PSSH)
Beispiel #19
0
    def parse(self, xmlnode):
        self.timescale = parse_attr_value(xmlnode, 'timescale', int)
        self.index_range = parse_attr_value(xmlnode, 'indexRange', str)
        self.index_range_exact = parse_attr_value(xmlnode, 'indexRangeExact', bool)
        self.presentation_time_offset = parse_attr_value(xmlnode, 'presentationTimeOffset', int)
        self.availability_time_offset = parse_attr_value(xmlnode, 'availabilityTimeOffset', float)
        self.availability_time_complete = parse_attr_value(xmlnode, 'availabilityTimeComplete', bool)

        self.initializations = parse_child_nodes(xmlnode, 'Initialization', URL)
        self.representation_indexes = parse_child_nodes(xmlnode, 'RepresentationIndex', URL)
Beispiel #20
0
    def parse(self, xmlnode):
        self.timescale = parse_attr_value(xmlnode, 'timescale', int)
        self.index_range = parse_attr_value(xmlnode, 'indexRange', str)
        self.index_range_exact = parse_attr_value(xmlnode, 'indexRangeExact', bool)
        self.presentation_time_offset = parse_attr_value(xmlnode, 'presentationTimeOffset', int)
        self.availability_time_offset = parse_attr_value(xmlnode, 'availabilityTimeOffset', float)
        self.availability_time_complete = parse_attr_value(xmlnode, 'availabilityTimeComplete', bool)

        self.initializations = parse_child_nodes(xmlnode, 'Initialization', URL)
        self.representation_indexes = parse_child_nodes(xmlnode, 'RepresentationIndex', URL)
Beispiel #21
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.id = parse_attr_value(xmlnode, 'id', str)
        self.bandwidth = parse_attr_value(xmlnode, 'bandwidth', int)
        self.quality_ranking = parse_attr_value(xmlnode, 'qualityRanking', int)
        self.dependency_id = parse_attr_value(xmlnode, 'dependencyId', [str])
        self.num_channels = parse_attr_value(xmlnode, 'numChannels', int)
        self.sample_rate = parse_attr_value(xmlnode, 'sampleRate', int)

        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase', SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList', SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate', SegmentTemplate)
        self.sub_representations = parse_child_nodes(xmlnode, 'SubRepresentation', SubRepresentation)
Beispiel #22
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.id = parse_attr_value(xmlnode, 'id', str)
        self.bandwidth = parse_attr_value(xmlnode, 'bandwidth', int)
        self.quality_ranking = parse_attr_value(xmlnode, 'qualityRanking', int)
        self.dependency_id = parse_attr_value(xmlnode, 'dependencyId', [str])
        self.num_channels = parse_attr_value(xmlnode, 'numChannels', int)
        self.sample_rate = parse_attr_value(xmlnode, 'sampleRate', int)

        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase', SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList', SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate', SegmentTemplate)
        self.sub_representations = parse_child_nodes(xmlnode, 'SubRepresentation', SubRepresentation)
Beispiel #23
0
    def parse(self, xmlnode):
        self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
        self.value = parse_attr_value(xmlnode, 'value', str)
        self.timescale = parse_attr_value(xmlnode, 'timescale', int)

        self.events = parse_child_nodes(xmlnode, 'Event', Event)
Beispiel #24
0
    def parse(self, xmlnode):
        self.xmlns = parse_attr_value(xmlnode, 'xmlns', str)
        self.id = parse_attr_value(xmlnode, 'id', str)
        self.type = parse_attr_value(xmlnode, 'type', str)
        self.profiles = parse_attr_value(xmlnode, 'profiles', str)
        self.availability_start_time = parse_attr_value(xmlnode, 'availabilityStartTime', str)
        self.availability_end_time = parse_attr_value(xmlnode, 'availabilityEndTime', str)
        self.publish_time = parse_attr_value(xmlnode, 'publishTime', str)
        self.media_presentation_duration = parse_attr_value(xmlnode, 'mediaPresentationDuration', str)
        self.minimum_update_period = parse_attr_value(xmlnode, 'minimumUpdatePeriod', str)
        self.min_buffer_time = parse_attr_value(xmlnode, 'minBufferTime', str)
        self.time_shift_buffer_depth = parse_attr_value(xmlnode, 'timeShiftBufferDepth', str)
        self.suggested_presentation_delay = parse_attr_value(xmlnode, 'suggestedPresentationDelay', str)
        self.max_segment_duration = parse_attr_value(xmlnode, 'maxSegmentDuration', str)
        self.max_subsegment_duration = parse_attr_value(xmlnode, 'maxSubsegmentDuration', str)

        self.program_informations = parse_child_nodes(xmlnode, 'ProgramInformation', ProgramInformation)
        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.locations = parse_child_nodes(xmlnode, 'Location', str)
        self.periods = parse_child_nodes(xmlnode, 'Period', Period)
        self.metrics = parse_child_nodes(xmlnode, 'Metrics', Metrics)
Beispiel #25
0
 def parse(self, xmlnode):
     self.source_url = parse_attr_value(xmlnode, 'sourceURL', str)
     self.range = parse_attr_value(xmlnode, 'range', str)
Beispiel #26
0
    def parse(self, xmlnode):
        self.profile = parse_attr_value(xmlnode, 'profile', str)
        self.profiles = parse_attr_value(xmlnode, 'profiles', str)
        self.width = parse_attr_value(xmlnode, 'width', int)
        self.height = parse_attr_value(xmlnode, 'height', int)
        self.sar = parse_attr_value(xmlnode, 'sar', str)
        self.frame_rate = parse_attr_value(xmlnode, 'frameRate', str)
        self.audio_sampling_rate = parse_attr_value(xmlnode,
                                                    'audioSamplingRate', str)
        self.mime_type = parse_attr_value(xmlnode, 'mimeType', str)
        self.segment_profiles = parse_attr_value(xmlnode, 'segmentProfiles',
                                                 str)
        self.codecs = parse_attr_value(xmlnode, 'codecs', str)
        self.maximum_sap_period = parse_attr_value(xmlnode, 'maximumSAPPeriod',
                                                   float)
        self.start_with_sap = parse_attr_value(xmlnode, 'startWithSAP', int)
        self.max_playout_rate = parse_attr_value(xmlnode, 'maxPlayoutRate',
                                                 float)
        self.coding_dependency = parse_attr_value(xmlnode, 'codingDependency',
                                                  bool)
        self.scan_type = parse_attr_value(xmlnode, 'scanType', str)

        self.frame_packings = parse_child_nodes(xmlnode, 'FramePacking',
                                                Descriptor)
        self.audio_channel_configurations = parse_child_nodes(
            xmlnode, 'AudioChannelConfiguration', Descriptor)
        self.content_protections = parse_child_nodes(xmlnode,
                                                     'ContentProtection',
                                                     Descriptor)
        self.essential_properties = parse_child_nodes(xmlnode,
                                                      'EssentialProperty',
                                                      Descriptor)
        self.supplemental_properties = parse_child_nodes(
            xmlnode, 'SupplementalProperty', Descriptor)
        self.inband_event_streams = parse_child_nodes(xmlnode,
                                                      'InbandEventStream',
                                                      Descriptor)
Beispiel #27
0
 def parse(self, xmlnode):
     self.starttime = parse_attr_value(xmlnode, 'starttime', str)
     self.duration = parse_attr_value(xmlnode, 'duration', str)
Beispiel #28
0
 def parse(self, xmlnode):
     self.t = parse_attr_value(xmlnode, 't', int)
     self.d = parse_attr_value(xmlnode, 'd', int)
     self.r = parse_attr_value(xmlnode, 'r', int)
Beispiel #29
0
 def parse(self, xmlnode):
     self.id = parse_attr_value(xmlnode, 'id', str)
     self.contains = parse_attr_value(xmlnode, 'contains', [int])
Beispiel #30
0
 def parse(self, xmlnode):
     self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
     self.value = parse_attr_value(xmlnode, 'value', str)
     self.id = parse_attr_value(xmlnode, 'id', str)
Beispiel #31
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.id = parse_attr_value(xmlnode, 'id', int)
        self.group = parse_attr_value(xmlnode, 'group', int)
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.content_type = parse_attr_value(xmlnode, 'contentType', str)
        self.par = parse_attr_value(xmlnode, 'par', str)
        self.min_bandwidth = parse_attr_value(xmlnode, 'minBandwidth', int)
        self.max_bandwidth = parse_attr_value(xmlnode, 'maxBandwidth', int)
        self.min_width = parse_attr_value(xmlnode, 'minWidth', int)
        self.max_width = parse_attr_value(xmlnode, 'maxWidth', int)
        self.min_height = parse_attr_value(xmlnode, 'minHeight', int)
        self.max_height = parse_attr_value(xmlnode, 'maxHeight', int)
        self.min_frame_rate = parse_attr_value(xmlnode, 'minFrameRate', str)
        self.max_frame_rate = parse_attr_value(xmlnode, 'maxFrameRate', str)
        self.segment_alignment = parse_attr_value(xmlnode, 'segmentAlignment', bool)
        self.subsegment_alignment = parse_attr_value(xmlnode, 'subsegmentAlignment', bool)
        self.subsegment_starts_with_sap = parse_attr_value(xmlnode, 'subsegmentStartsWithSAP', int)
        self.bitstream_switching = parse_attr_value(xmlnode, 'bitstreamSwitching', bool)

        self.accessibilities = parse_child_nodes(xmlnode, 'Accessibility', Descriptor)
        self.roles = parse_child_nodes(xmlnode, 'Role', Descriptor)
        self.ratings = parse_child_nodes(xmlnode, 'Rating', Descriptor)
        self.viewpoints = parse_child_nodes(xmlnode, 'Viewpoint', Descriptor)
        self.content_components = parse_child_nodes(xmlnode, 'ContentComponent', ContentComponent)
        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase', SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList', SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate', SegmentTemplate)
        self.representations = parse_child_nodes(xmlnode, 'Representation', Representation)
Beispiel #32
0
 def parse(self, xmlnode):
     self.starttime = parse_attr_value(xmlnode, 'starttime', str)
     self.duration = parse_attr_value(xmlnode, 'duration', str)
Beispiel #33
0
 def parse(self, xmlnode):
     """Parsing"""
     self.include_in_requests = parse_attr_value(xmlnode,
                                                 'includeInRequests', str)
     self.query_string = parse_attr_value(xmlnode, 'queryString', str)
     self.query_template = parse_attr_value(xmlnode, 'queryTemplate', str)
Beispiel #34
0
 def parse(self, xmlnode):
     """Parsing"""
     self.xmlns = parse_attr_value(xmlnode, 'xmlns:{}'.format(self.prefix),
                                   str)
     self.ext_url_query_info = parse_child_nodes(
         xmlnode, '{}:ExtUrlQueryInfo'.format(self.prefix), ExtUrlQueryInfo)
Beispiel #35
0
    def parse(self, xmlnode):
        self.metrics = parse_attr_value(xmlnode, 'metrics', str)

        self.reportings = parse_child_nodes(xmlnode, 'Reporting', Descriptor)
        self.ranges = parse_child_nodes(xmlnode, 'Range', Range)
Beispiel #36
0
 def parse(self, xmlnode):
     self.t = parse_attr_value(xmlnode, 't', int)
     self.d = parse_attr_value(xmlnode, 'd', int)
     self.r = parse_attr_value(xmlnode, 'r', int)
Beispiel #37
0
    def parse(self, xmlnode):
        self.profiles = parse_attr_value(xmlnode, 'profile', str)
        self.width = parse_attr_value(xmlnode, 'width', int)
        self.height = parse_attr_value(xmlnode, 'height', int)
        self.sar = parse_attr_value(xmlnode, 'sar', str)
        self.frame_rate = parse_attr_value(xmlnode, 'frameRate', str)
        self.audio_sampling_rate = parse_attr_value(xmlnode, 'audioSamplingRate', str)
        self.mime_type = parse_attr_value(xmlnode, 'mimeType', str)
        self.segment_profiles = parse_attr_value(xmlnode, 'segmentProfiles', str)
        self.codecs = parse_attr_value(xmlnode, 'codecs', str)
        self.maximum_sap_period = parse_attr_value(xmlnode, 'maximumSAPPeriod', float)
        self.start_with_sap = parse_attr_value(xmlnode, 'startWithSAP', int)
        self.max_playout_rate = parse_attr_value(xmlnode, 'maxPlayoutRate', float)
        self.coding_dependency = parse_attr_value(xmlnode, 'codingDependency', bool)
        self.scan_type = parse_attr_value(xmlnode, 'scanType', str)

        self.frame_packings = parse_child_nodes(xmlnode, 'FramePacking', Descriptor)
        self.audio_channel_configurations = parse_child_nodes(xmlnode, 'AudioChannelConfiguration', Descriptor)
        self.content_protections = parse_child_nodes(xmlnode, 'ContentProtection', Descriptor)
        self.essential_properties = parse_child_nodes(xmlnode, 'EssentialProperty', Descriptor)
        self.supplemental_properties = parse_child_nodes(xmlnode, 'SupplementalProperty', Descriptor)
        self.inband_event_streams = parse_child_nodes(xmlnode, 'InbandEventStream', Descriptor)
Beispiel #38
0
    def parse(self, xmlnode):
        self.metrics = parse_attr_value(xmlnode, 'metrics', str)

        self.reportings = parse_child_nodes(xmlnode, 'Reporting', Descriptor)
        self.ranges = parse_child_nodes(xmlnode, 'Range', Range)
Beispiel #39
0
 def parse(self, xmlnode):
     self.source_url = parse_attr_value(xmlnode, 'sourceURL', str)
     self.range = parse_attr_value(xmlnode, 'range', str)
Beispiel #40
0
 def parse(self, xmlnode):
     self.media = parse_attr_value(xmlnode, 'media', str)
     self.media_range = parse_attr_value(xmlnode, 'mediaRange', str)
     self.index = parse_attr_value(xmlnode, 'index', str)
     self.index_range = parse_attr_value(xmlnode, 'indexRange', str)
Beispiel #41
0
 def parse(self, xmlnode):
     self.marlin_content_id = parse_child_nodes(xmlnode, 'MarlinContentId', MarlinContentId)
     self.xmlns_mas = parse_attr_value(xmlnode, 'xmlns:mas', str)
     self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
     self.value = parse_attr_value(xmlnode, 'value', str)
     self.id = parse_attr_value(xmlnode, 'id', str)
Beispiel #42
0
 def parse(self, xmlnode):
     self.id = parse_attr_value(xmlnode, 'id', str)
     self.contains = parse_attr_value(xmlnode, 'contains', [int])
Beispiel #43
0
 def parse(self, xmlnode):
     self.value = parse_node_value(xmlnode, str)
     self.xmlns_cenc = parse_attr_value(xmlnode, 'xmlns:cenc', str)
Beispiel #44
0
 def parse(self, xmlnode):
     self.media = parse_attr_value(xmlnode, 'media', str)
     self.media_range = parse_attr_value(xmlnode, 'mediaRange', str)
     self.index = parse_attr_value(xmlnode, 'index', str)
     self.index_range = parse_attr_value(xmlnode, 'indexRange', str)
Beispiel #45
0
 def parse(self, xmlnode):
     self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
     self.value = parse_attr_value(xmlnode, 'value', str)
     self.id = parse_attr_value(xmlnode, 'id', str)
Beispiel #46
0
    def parse(self, xmlnode):
        RepresentationBase.parse(self, xmlnode)

        self.id = parse_attr_value(xmlnode, 'id', int)
        self.group = parse_attr_value(xmlnode, 'group', int)
        self.lang = parse_attr_value(xmlnode, 'lang', str)
        self.label = parse_attr_value(xmlnode, 'label', str)
        self.content_type = parse_attr_value(xmlnode, 'contentType', str)
        self.par = parse_attr_value(xmlnode, 'par', str)
        self.min_bandwidth = parse_attr_value(xmlnode, 'minBandwidth', int)
        self.max_bandwidth = parse_attr_value(xmlnode, 'maxBandwidth', int)
        self.min_width = parse_attr_value(xmlnode, 'minWidth', int)
        self.max_width = parse_attr_value(xmlnode, 'maxWidth', int)
        self.min_height = parse_attr_value(xmlnode, 'minHeight', int)
        self.max_height = parse_attr_value(xmlnode, 'maxHeight', int)
        self.min_frame_rate = parse_attr_value(xmlnode, 'minFrameRate', str)
        self.max_frame_rate = parse_attr_value(xmlnode, 'maxFrameRate', str)
        self.segment_alignment = parse_attr_value(xmlnode, 'segmentAlignment',
                                                  bool)
        self.selection_priority = parse_attr_value(xmlnode,
                                                   'selectionPriority', int)
        self.subsegment_alignment = parse_attr_value(xmlnode,
                                                     'subsegmentAlignment',
                                                     bool)
        self.subsegment_starts_with_sap = parse_attr_value(
            xmlnode, 'subsegmentStartsWithSAP', int)
        self.bitstream_switching = parse_attr_value(xmlnode,
                                                    'bitstreamSwitching', bool)

        self.accessibilities = parse_child_nodes(xmlnode, 'Accessibility',
                                                 Descriptor)
        self.roles = parse_child_nodes(xmlnode, 'Role', Descriptor)
        self.ratings = parse_child_nodes(xmlnode, 'Rating', Descriptor)
        self.viewpoints = parse_child_nodes(xmlnode, 'Viewpoint', Descriptor)
        self.content_components = parse_child_nodes(xmlnode,
                                                    'ContentComponent',
                                                    ContentComponent)
        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.segment_bases = parse_child_nodes(xmlnode, 'SegmentBase',
                                               SegmentBase)
        self.segment_lists = parse_child_nodes(xmlnode, 'SegmentList',
                                               SegmentList)
        self.segment_templates = parse_child_nodes(xmlnode, 'SegmentTemplate',
                                                   SegmentTemplate)
        self.representations = parse_child_nodes(xmlnode, 'Representation',
                                                 Representation)
Beispiel #47
0
 def parse(self, xmlnode):
     self.event_value = parse_node_value(xmlnode, str)
     self.presentation_time = parse_attr_value(xmlnode, 'presentationTime', int)
     self.duration = parse_attr_value(xmlnode, 'duration', int)
     self.id = parse_attr_value(xmlnode, 'id', int)
Beispiel #48
0
    def parse(self, xmlnode):
        self.xmlns = parse_attr_value(xmlnode, 'xmlns', str)
        self.id = parse_attr_value(xmlnode, 'id', str)
        self.type = parse_attr_value(xmlnode, 'type', str)
        self.profiles = parse_attr_value(xmlnode, 'profiles', str)
        self.availability_start_time = parse_attr_value(
            xmlnode, 'availabilityStartTime', str)
        self.availability_end_time = parse_attr_value(xmlnode,
                                                      'availabilityEndTime',
                                                      str)
        self.publish_time = parse_attr_value(xmlnode, 'publishTime', str)
        self.media_presentation_duration = parse_attr_value(
            xmlnode, 'mediaPresentationDuration', str)
        self.minimum_update_period = parse_attr_value(xmlnode,
                                                      'minimumUpdatePeriod',
                                                      str)
        self.min_buffer_time = parse_attr_value(xmlnode, 'minBufferTime', str)
        self.time_shift_buffer_depth = parse_attr_value(
            xmlnode, 'timeShiftBufferDepth', str)
        self.suggested_presentation_delay = parse_attr_value(
            xmlnode, 'suggestedPresentationDelay', str)
        self.max_segment_duration = parse_attr_value(xmlnode,
                                                     'maxSegmentDuration', str)
        self.max_subsegment_duration = parse_attr_value(
            xmlnode, 'maxSubsegmentDuration', str)

        self.program_informations = parse_child_nodes(xmlnode,
                                                      'ProgramInformation',
                                                      ProgramInformation)
        self.base_urls = parse_child_nodes(xmlnode, 'BaseURL', BaseURL)
        self.locations = parse_child_nodes(xmlnode, 'Location',
                                           XsStringElement)
        self.periods = parse_child_nodes(xmlnode, 'Period', Period)
        self.metrics = parse_child_nodes(xmlnode, 'Metrics', Metrics)
        self.utc_timings = parse_child_nodes(xmlnode, 'UTCTiming', Descriptor)
Beispiel #49
0
    def parse(self, xmlnode):
        self.scheme_id_uri = parse_attr_value(xmlnode, 'schemeIdUri', str)
        self.value = parse_attr_value(xmlnode, 'value', str)
        self.timescale = parse_attr_value(xmlnode, 'timescale', int)

        self.events = parse_child_nodes(xmlnode, 'Event', Event)