diff options
author | 2017-06-23 16:12:18 +0200 | |
---|---|---|
committer | 2017-06-23 16:12:18 +0200 | |
commit | a644414fd2c3a3f7f41e716b6875a78981e4cfe1 (patch) | |
tree | 13fc8ff2f6072add96f987a1a68a15c22d68d911 /MPD/SegmentTemplateStream.h | |
parent | f8907f0a7a84928800adbbfd8e66e500794aa5d5 (diff) |
adding mpd live handling + automatic mpd fetching
Change-Id: I2c05bdf6a4d940ad22bb8632268f4b63a08a80a8
Signed-off-by: jacko <jsamain+fdio@cisco.com>
Diffstat (limited to 'MPD/SegmentTemplateStream.h')
-rw-r--r-- | MPD/SegmentTemplateStream.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 <math.h> -#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(); |