aboutsummaryrefslogtreecommitdiffstats
path: root/MPD/SegmentTemplateStream.h
diff options
context:
space:
mode:
authorjacko <jsamain+fdio@cisco.com>2017-06-08 19:54:24 +0200
committerjacko <jsamain+fdio@cisco.com>2017-06-08 19:59:02 +0200
commitf8907f0a7a84928800adbbfd8e66e500794aa5d5 (patch)
treead1565a5d9aabb3c699a80404f60aa68ea56d914 /MPD/SegmentTemplateStream.h
parente3bff273518853e34c86719ce86fa72f1b5ba3b1 (diff)
Adding handling for different kind of MPDs (previously the front end could only handle MPD with SegmentList)
Now can handle: MPD with SegmentTemplate in Representation (VOD) MPD with SegmentTemplate and SegmentTimeline (live) Change-Id: Ie32e0e1823c94b1412990192595b16d3e2df1cfd Plus: removed some printf Signed-off-by: jacko <jsamain+fdio@cisco.com>
Diffstat (limited to 'MPD/SegmentTemplateStream.h')
-rw-r--r--MPD/SegmentTemplateStream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/MPD/SegmentTemplateStream.h b/MPD/SegmentTemplateStream.h
index ea85ab1a..f27b77fb 100644
--- a/MPD/SegmentTemplateStream.h
+++ b/MPD/SegmentTemplateStream.h
@@ -38,6 +38,7 @@ public:
virtual RepresentationStreamType getStreamType();
virtual uint32_t getSize();
virtual uint32_t getAverageSegmentDuration();
+ virtual uint32_t getTimescale();
private:
dash::mpd::ISegmentTemplate* findSegmentTemplate();
@@ -45,6 +46,9 @@ private:
dash::mpd::ISegmentTemplate *segmentTemplate;
std::vector<uint32_t> segmentStartTimes;
+ uint32_t averageDuration;
+ bool inSync;
+ uint32_t currentSegment;
};
}
}