Exemplo n.º 1
0
        static void PopulateMultipleSegmentBase(XElement element, MultipleSegmentBase result)
        {
            var ns = element.GetDefaultNamespace().NamespaceName;

            PopulateSegmentBase(element, result);

            result.Duration    = element.Attribute("duration").GetNullableUInt();
            result.StartNumber = element.Attribute("startNumber").GetNullableUInt();

            result.SegmentTimeline    = element.Elements(XName.Get("SegmentTimeline", ns)).Select(LoadSegmentTimeline).SingleOrDefault();
            result.BitstreamSwitching = element.Elements(XName.Get("BitstreamSwitching", ns)).Select(LoadURL).SingleOrDefault();
        }
Exemplo n.º 2
0
        static void PopulateMultipleSegmentBase(XElement element, MultipleSegmentBase result)
        {
            var ns = element.GetDefaultNamespace().NamespaceName;
            PopulateSegmentBase(element, result);

            result.Duration = element.Attribute("duration").GetNullableUInt();
            result.StartNumber = element.Attribute("startNumber").GetNullableUInt();

            result.SegmentTimeline = element.Elements(XName.Get("SegmentTimeline", ns)).Select(LoadSegmentTimeline).SingleOrDefault();
            result.BitstreamSwitching = element.Elements(XName.Get("BitstreamSwitching", ns)).Select(LoadURL).SingleOrDefault();
        }