Ejemplo n.º 1
0
def write(self, xmlnode):
    write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
    write_attr_value(xmlnode, 'value', self.value)
    write_attr_value(xmlnode, 'id', self.id)
    write_attr_value(xmlnode, 'ns2:default_KID', self.key_id)
    if (self.key_id == None):
        write_attr_value(xmlnode, 'cenc:default_KID', self.key_id)
Ejemplo n.º 2
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'lang', self.lang)
        write_attr_value(xmlnode, 'moreInformationURL', self.more_information_url)

        write_child_node(xmlnode, 'Title', self.titles)
        write_child_node(xmlnode, 'Source', self.sources)
        write_child_node(xmlnode, 'Copyright', self.copyrights)
Ejemplo n.º 3
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'lang', self.lang)
        write_attr_value(xmlnode, 'moreInformationURL', self.more_information_url)

        write_child_node(xmlnode, 'Title', self.titles)
        write_child_node(xmlnode, 'Source', self.sources)
        write_child_node(xmlnode, 'Copyright', self.copyrights)
Ejemplo n.º 4
0
    def write(self, xmlnode):
        SegmentBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'duration', self.duration)
        write_attr_value(xmlnode, 'startNumber', self.start_number)

        write_child_node(xmlnode, 'SegmentTimeline', self.segment_timelines)
        write_child_node(xmlnode, 'BitstreamSwitching', self.bitstream_switchings)
Ejemplo n.º 5
0
    def write(self, xmlnode):
        SegmentBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'duration', self.duration)
        write_attr_value(xmlnode, 'startNumber', self.start_number)

        write_child_node(xmlnode, 'SegmentTimeline', self.segment_timelines)
        write_child_node(xmlnode, 'BitstreamSwitching', self.bitstream_switchings)
Ejemplo n.º 6
0
 def write(self, xmlnode):
     write_child_node(xmlnode, 'mas:MarlinContentIds', self.marlin_content_ids)
     write_attr_value(xmlnode, 'cenc:default_KID', self.cenc_default_KID)
     write_attr_value(xmlnode, 'xmlns:cenc', self.xmlns_cenc)
     write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
     write_attr_value(xmlnode, 'value', self.value)
     write_attr_value(xmlnode, 'id', self.id)
     write_child_node(xmlnode, 'cenc:pssh', self.widevine)
Ejemplo n.º 7
0
    def write(self, xmlnode):
        write_node_value(xmlnode, self.base_url_value)

        write_attr_value(xmlnode, 'serviceLocation', self.service_location)
        write_attr_value(xmlnode, 'byteRange', self.byte_range)
        write_attr_value(xmlnode, 'availabilityTimeOffset', self.availability_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeComplete', self.availability_time_complete)
Ejemplo n.º 8
0
    def write(self, xmlnode):
        MultipleSegmentBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'media', self.media)
        write_attr_value(xmlnode, 'index', self.index)
        write_attr_value(xmlnode, 'initialization', self.initialization)
        write_attr_value(xmlnode, 'bitstreamSwitching', self.bitstream_switching)
Ejemplo n.º 9
0
    def write(self, xmlnode):
        MultipleSegmentBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'media', self.media)
        write_attr_value(xmlnode, 'index', self.index)
        write_attr_value(xmlnode, 'initialization', self.initialization)
        write_attr_value(xmlnode, 'bitstreamSwitching', self.bitstream_switching)
Ejemplo n.º 10
0
    def write(self, xmlnode):
        write_node_value(xmlnode, self.base_url_value)

        write_attr_value(xmlnode, 'serviceLocation', self.service_location)
        write_attr_value(xmlnode, 'byteRange', self.byte_range)
        write_attr_value(xmlnode, 'availabilityTimeOffset', self.availability_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeComplete', self.availability_time_complete)
Ejemplo n.º 11
0
    def write(self, xmlnode):
        RepresentationBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'level', self.level)
        write_attr_value(xmlnode, 'bandwidth', self.bandwidth)
        write_attr_value(xmlnode, 'dependencyLevel', self.dependency_level)
        write_attr_value(xmlnode, 'contentComponent', self.content_component)
Ejemplo n.º 12
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'lang', self.lang)
        write_attr_value(xmlnode, 'contentType', self.content_type)
        write_attr_value(xmlnode, 'par', self.par)

        write_child_node(xmlnode, 'Accessibility', self.accessibilities)
        write_child_node(xmlnode, 'Role', self.roles)
        write_child_node(xmlnode, 'Rating', self.ratings)
        write_child_node(xmlnode, 'Viewpoint', self.viewpoints)
Ejemplo n.º 13
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'lang', self.lang)
        write_attr_value(xmlnode, 'contentType', self.content_type)
        write_attr_value(xmlnode, 'par', self.par)

        write_child_node(xmlnode, 'Accessibility', self.accessibilities)
        write_child_node(xmlnode, 'Role', self.roles)
        write_child_node(xmlnode, 'Rating', self.ratings)
        write_child_node(xmlnode, 'Viewpoint', self.viewpoints)
Ejemplo n.º 14
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'start', self.start)
        write_attr_value(xmlnode, 'duration', self.duration)
        write_attr_value(xmlnode, 'bitstreamSwitching', self.bitstream_switching)

        write_child_node(xmlnode, 'BaseURL', self.base_urls)
        write_child_node(xmlnode, 'SegmentBase', self.segment_bases)
        write_child_node(xmlnode, 'SegmentList', self.segment_lists)
        write_child_node(xmlnode, 'SegmentTemplate', self.segment_templates)
        write_child_node(xmlnode, 'AssetIdentifier', self.asset_identifiers)
        write_child_node(xmlnode, 'EventStream', self.event_streams)
        write_child_node(xmlnode, 'AdaptationSet', self.adaptation_sets)
        write_child_node(xmlnode, 'Subset', self.subsets)
Ejemplo n.º 15
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'start', self.start)
        write_attr_value(xmlnode, 'duration', self.duration)
        write_attr_value(xmlnode, 'bitstreamSwitching', self.bitstream_switching)

        write_child_node(xmlnode, 'BaseURL', self.base_urls)
        write_child_node(xmlnode, 'SegmentBase', self.segment_bases)
        write_child_node(xmlnode, 'SegmentList', self.segment_lists)
        write_child_node(xmlnode, 'SegmentTemplate', self.segment_templates)
        write_child_node(xmlnode, 'AssetIdentifier', self.asset_identifiers)
        write_child_node(xmlnode, 'EventStream', self.event_streams)
        write_child_node(xmlnode, 'AdaptationSet', self.adaptation_sets)
        write_child_node(xmlnode, 'Subset', self.subsets)
Ejemplo n.º 16
0
    def write(self, xmlnode):
        RepresentationBase.write(self, xmlnode)

        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'width', self.width)
        write_attr_value(xmlnode, 'height', self.height)
        write_attr_value(xmlnode, 'bandwidth', self.bandwidth)
        write_attr_value(xmlnode, 'mimeType', self.mime_type)
        write_attr_value(xmlnode, 'codecs', self.codecs)

        write_child_node(xmlnode, 'BaseURL', self.base_urls)
        write_child_node(xmlnode, 'SegmentBase', self.segment_bases)
        write_child_node(xmlnode, 'SegmentList', self.segment_lists)
        write_child_node(xmlnode, 'SegmentTemplate', self.segment_templates)
        write_child_node(xmlnode, 'SubRepresentation', self.sub_representations)
Ejemplo n.º 17
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'sourceURL', self.source_url)
     write_attr_value(xmlnode, 'range', self.range)
Ejemplo n.º 18
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'timescale', self.timescale)
        write_attr_value(xmlnode, 'indexRange', self.index_range)
        write_attr_value(xmlnode, 'indexRangeExact', self.index_range_exact)
        write_attr_value(xmlnode, 'presentationTimeOffset',
                         self.presentation_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeOffset',
                         self.availability_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeComplete',
                         self.availability_time_complete)

        write_child_node(xmlnode, 'Initialization', self.initializations)
        write_child_node(xmlnode, 'RepresentationIndex',
                         self.representation_indexes)
Ejemplo n.º 19
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 't', self.t)
     write_attr_value(xmlnode, 'd', self.d)
     write_attr_value(xmlnode, 'r', self.r)
Ejemplo n.º 20
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'starttime', self.starttime)
     write_attr_value(xmlnode, 'duration', self.duration)
Ejemplo n.º 21
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
     write_attr_value(xmlnode, 'value', self.value)
     write_attr_value(xmlnode, 'id', self.id)
Ejemplo n.º 22
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'metrics', self.metrics)

        write_child_node(xmlnode, 'Reporting', self.reportings)
        write_child_node(xmlnode, 'Range', self.ranges)
Ejemplo n.º 23
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'xmlns', self.xmlns)
        write_attr_value(xmlnode, 'id', self.id)
        write_attr_value(xmlnode, 'type', self.type)
        write_attr_value(xmlnode, 'profiles', self.profiles)
        write_attr_value(xmlnode, 'availabilityStartTime', self.availability_start_time)
        write_attr_value(xmlnode, 'availabilityEndTime', self.availability_end_time)
        write_attr_value(xmlnode, 'publishTime', self.publish_time)
        write_attr_value(xmlnode, 'mediaPresentationDuration', self.media_presentation_duration)
        write_attr_value(xmlnode, 'minimumUpdatePeriod', self.minimum_update_period)
        write_attr_value(xmlnode, 'minBufferTime', self.min_buffer_time)
        write_attr_value(xmlnode, 'timeShiftBufferDepth', self.time_shift_buffer_depth)
        write_attr_value(xmlnode, 'suggestedPresentationDelay', self.suggested_presentation_delay)
        write_attr_value(xmlnode, 'maxSegmentDuration', self.max_segment_duration)
        write_attr_value(xmlnode, 'maxSubsegmentDuration', self.max_subsegment_duration)

        write_child_node(xmlnode, 'ProgramInformation', self.program_informations)
        write_child_node(xmlnode, 'BaseURL', self.base_urls)
        write_child_node(xmlnode, 'Location', self.locations)
        write_child_node(xmlnode, 'Period', self.periods)
        write_child_node(xmlnode, 'Metrics', self.metrics)
Ejemplo n.º 24
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
        write_attr_value(xmlnode, 'value', self.value)
        write_attr_value(xmlnode, 'timescale', self.timescale)

        write_child_node(xmlnode, 'Event', self.events)
Ejemplo n.º 25
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
     write_attr_value(xmlnode, 'value', self.value)
     write_attr_value(xmlnode, 'id', self.id)
Ejemplo n.º 26
0
    def write(self, xmlnode):
        RepresentationBase.write(self, xmlnode)

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

        write_child_node(xmlnode, 'Accessibility', self.accessibilities)
        write_child_node(xmlnode, 'Role', self.roles)
        write_child_node(xmlnode, 'Rating', self.ratings)
        write_child_node(xmlnode, 'Viewpoint', self.viewpoints)
        write_child_node(xmlnode, 'ContentComponent', self.content_components)
        write_child_node(xmlnode, 'BaseURL', self.base_urls)
        write_child_node(xmlnode, 'SegmentBase', self.segment_bases)
        write_child_node(xmlnode, 'SegmentList', self.segment_lists)
        write_child_node(xmlnode, 'SegmentTemplate', self.segment_templates)
        write_child_node(xmlnode, 'Representation', self.representations)
Ejemplo n.º 27
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'sourceURL', self.source_url)
     write_attr_value(xmlnode, 'range', self.range)
Ejemplo n.º 28
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 't', self.t)
     write_attr_value(xmlnode, 'd', self.d)
     write_attr_value(xmlnode, 'r', self.r)
Ejemplo n.º 29
0
 def write(self, xmlnode):  # pylint: disable=super-on-old-class
     """Writing"""
     super(DescriptorWithExtUrlQuery, self).write(xmlnode)
     write_attr_value(xmlnode, 'xmlns:{}'.format(self.prefix), self.xmlns)
     write_child_node(xmlnode, '{}:ExtUrlQueryInfo'.format(self.prefix),
                      self.ext_url_query_info)
Ejemplo n.º 30
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'media', self.media)
     write_attr_value(xmlnode, 'mediaRange', self.media_range)
     write_attr_value(xmlnode, 'index', self.index)
     write_attr_value(xmlnode, 'indexRange', self.index_range)
Ejemplo n.º 31
0
 def write(self, xmlnode):
     """Writing"""
     write_attr_value(xmlnode, 'includeInRequests',
                      self.include_in_requests)
     write_attr_value(xmlnode, 'queryString', self.query_string)
     write_attr_value(xmlnode, 'queryTemplate', self.query_template)
Ejemplo n.º 32
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'starttime', self.starttime)
     write_attr_value(xmlnode, 'duration', self.duration)
Ejemplo n.º 33
0
 def write(self, xmlnode):
     write_node_value(xmlnode, self.event_value)
     write_attr_value(xmlnode, 'presentationTime', self.presentation_time)
     write_attr_value(xmlnode, 'duration', self.duration)
     write_attr_value(xmlnode, 'id', self.id)
Ejemplo n.º 34
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'metrics', self.metrics)

        write_child_node(xmlnode, 'Reporting', self.reportings)
        write_child_node(xmlnode, 'Range', self.ranges)
Ejemplo n.º 35
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'id', self.id)
     write_attr_value(xmlnode, 'contains', self.contains)
Ejemplo n.º 36
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'media', self.media)
     write_attr_value(xmlnode, 'mediaRange', self.media_range)
     write_attr_value(xmlnode, 'index', self.index)
     write_attr_value(xmlnode, 'indexRange', self.index_range)
Ejemplo n.º 37
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'timescale', self.timescale)
        write_attr_value(xmlnode, 'indexRange', self.index_range)
        write_attr_value(xmlnode, 'indexRangeExact', self.index_range_exact)
        write_attr_value(xmlnode, 'presentationTimeOffset', self.presentation_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeOffset', self.availability_time_offset)
        write_attr_value(xmlnode, 'availabilityTimeComplete', self.availability_time_complete)

        write_child_node(xmlnode, 'Initialization', self.initializations)
        write_child_node(xmlnode, 'RepresentationIndex', self.representation_indexes)
Ejemplo n.º 38
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, 'id', self.id)
     write_attr_value(xmlnode, 'contains', self.contains)
Ejemplo n.º 39
0
 def write(self, xmlnode):
     write_child_node(xmlnode, 'mas:MarlinContentId', self.marlin_content_id)
     write_attr_value(xmlnode, 'xmlns:mas', self.xmlns_mas)
     write_attr_value(xmlnode, 'schemeIdUri', self.scheme_id_uri)
     write_attr_value(xmlnode, 'value', self.value)
     write_attr_value(xmlnode, 'id', self.id)
Ejemplo n.º 40
0
 def write(self, xmlnode):
     write_node_value(xmlnode, self.event_value)
     write_attr_value(xmlnode, 'messageData', self.message_data)
     write_attr_value(xmlnode, 'presentationTime', self.presentation_time)
     write_attr_value(xmlnode, 'duration', self.duration)
     write_attr_value(xmlnode, 'id', self.id)
Ejemplo n.º 41
0
 def write(self, xmlnode):
     write_node_value(xmlnode, self.value)
     write_attr_value(xmlnode, 'xmlns:cenc', self.xmlns_cenc)
Ejemplo n.º 42
0
 def write(self, xmlnode):
     write_attr_value(xmlnode, "schemeIdUri", self.scheme_id_uri)
     write_attr_value(xmlnode, "value", self.value)
     write_attr_value(xmlnode, "id", self.id)
     write_attr_value(xmlnode, "default_KID", self.default_key_id)
     write_attr_value(xmlnode, "ns2:default_KID", self.ns2_key_id)
     write_attr_value(xmlnode, "cenc:default_KID", self.cenc_default_kid)
     write_child_node(xmlnode, "cenc:pssh", self.pssh)
Ejemplo n.º 43
0
    def write(self, xmlnode):
        write_attr_value(xmlnode, 'profile', self.profiles)
        write_attr_value(xmlnode, 'width', self.width)
        write_attr_value(xmlnode, 'height', self.height)
        write_attr_value(xmlnode, 'sar', self.sar)
        write_attr_value(xmlnode, 'frameRate', self.frame_rate)
        write_attr_value(xmlnode, 'audioSamplingRate', self.audio_sampling_rate)
        write_attr_value(xmlnode, 'mimeType', self.mime_type)
        write_attr_value(xmlnode, 'segmentProfiles', self.segment_profiles)
        write_attr_value(xmlnode, 'codecs', self.codecs)
        write_attr_value(xmlnode, 'maximumSAPPeriod', self.maximum_sap_period)
        write_attr_value(xmlnode, 'startWithSAP', self.start_with_sap)
        write_attr_value(xmlnode, 'maxPlayoutRate', self.max_playout_rate)
        write_attr_value(xmlnode, 'codingDependency', self.coding_dependency)
        write_attr_value(xmlnode, 'scanType', self.scan_type)

        write_child_node(xmlnode, 'FramePacking', self.frame_packings)
        write_child_node(xmlnode, 'AudioChannelConfiguration', self.audio_channel_configurations)
        write_child_node(xmlnode, 'ContentProtection', self.content_protections)
        write_child_node(xmlnode, 'EssentialProperty', self.essential_properties)
        write_child_node(xmlnode, 'SupplementalProperty', self.supplemental_properties)
        write_child_node(xmlnode, 'InbandEventStream', self.inband_event_streams)