From a644414fd2c3a3f7f41e716b6875a78981e4cfe1 Mon Sep 17 00:00:00 2001 From: jacko Date: Fri, 23 Jun 2017 16:12:18 +0200 Subject: adding mpd live handling + automatic mpd fetching Change-Id: I2c05bdf6a4d940ad22bb8632268f4b63a08a80a8 Signed-off-by: jacko --- MPD/SegmentTemplateStream.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MPD/SegmentTemplateStream.h') diff --git a/MPD/SegmentTemplateStream.h b/MPD/SegmentTemplateStream.h index f27b77fb..68d4f848 100644 --- a/MPD/SegmentTemplateStream.h +++ b/MPD/SegmentTemplateStream.h @@ -14,7 +14,7 @@ #include -#include "IMPD.h" +#include "MPDWrapper.h" #include "AbstractRepresentationStream.h" #include "ISegment.h" #include "ISegmentTemplate.h" @@ -28,7 +28,8 @@ namespace mpd class SegmentTemplateStream: public AbstractRepresentationStream { public: - SegmentTemplateStream(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, dash::mpd::IRepresentation *representation); + SegmentTemplateStream(viper::managers::StreamType type, libdash::framework::mpd::MPDWrapper *mpdWrapper, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, dash::mpd::IRepresentation *representation); + SegmentTemplateStream(viper::managers::StreamType type, libdash::framework::mpd::MPDWrapper *mpdWrapper, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, dash::mpd::IRepresentation *representation, dash::mpd::IMPD* mpd); virtual ~SegmentTemplateStream(); virtual dash::mpd::ISegment* getInitializationSegment(); @@ -39,6 +40,8 @@ public: virtual uint32_t getSize(); virtual uint32_t getAverageSegmentDuration(); virtual uint32_t getTimescale(); + virtual uint32_t getTime(size_t segmentNumber); + virtual size_t getSegmentNumber(uint32_t time); private: dash::mpd::ISegmentTemplate* findSegmentTemplate(); -- cgit 1.2.3-korg