aboutsummaryrefslogtreecommitdiffstats
path: root/MPD/AbstractRepresentationStream.h
diff options
context:
space:
mode:
authorjacko <jsamain+fdio@cisco.com>2017-06-23 16:12:18 +0200
committerjacko <jsamain+fdio@cisco.com>2017-06-23 16:12:18 +0200
commita644414fd2c3a3f7f41e716b6875a78981e4cfe1 (patch)
tree13fc8ff2f6072add96f987a1a68a15c22d68d911 /MPD/AbstractRepresentationStream.h
parentf8907f0a7a84928800adbbfd8e66e500794aa5d5 (diff)
adding mpd live handling + automatic mpd fetching
Change-Id: I2c05bdf6a4d940ad22bb8632268f4b63a08a80a8 Signed-off-by: jacko <jsamain+fdio@cisco.com>
Diffstat (limited to 'MPD/AbstractRepresentationStream.h')
-rw-r--r--MPD/AbstractRepresentationStream.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/MPD/AbstractRepresentationStream.h b/MPD/AbstractRepresentationStream.h
index 4728e366..87400c0c 100644
--- a/MPD/AbstractRepresentationStream.h
+++ b/MPD/AbstractRepresentationStream.h
@@ -12,15 +12,22 @@
#ifndef LIBDASH_FRAMEWORK_MPD_ABSTRACTREPRESENTATIONSTREAM_H_
#define LIBDASH_FRAMEWORK_MPD_ABSTRACTREPRESENTATIONSTREAM_H_
+#include "../MPD/IMPDWrapper.h"
#include "IRepresentationStream.h"
#include "IBaseUrl.h"
#include "IRepresentation.h"
#include "IAdaptationSet.h"
-#include "IMPD.h"
#include "IPeriod.h"
#include "BaseUrlResolver.h"
#include "TimeResolver.h"
+namespace viper
+{
+namespace managers
+{
+enum StreamType;
+}
+}
namespace libdash
{
namespace framework
@@ -30,7 +37,7 @@ namespace mpd
class AbstractRepresentationStream : public IRepresentationStream
{
public:
- AbstractRepresentationStream(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet,
+ AbstractRepresentationStream(viper::managers::StreamType type, libdash::framework::mpd::IMPDWrapper *mpdWrapper, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet,
dash::mpd::IRepresentation *representation);
virtual ~AbstractRepresentationStream();
@@ -47,17 +54,20 @@ public:
virtual uint32_t getAverageSegmentDuration();
virtual uint32_t getTimescale();
- virtual void setSegmentOffset(uint32_t offset);
+ virtual void setSegmentOffset(uint32_t offset);
+ virtual uint32_t getTime(size_t segmentNumber);
+ virtual size_t getSegmentNumber(uint32_t time);
protected:
virtual void setBaseUrls(const std::vector<dash::mpd::IBaseUrl *> baseurls);
std::vector<dash::mpd::IBaseUrl *> baseUrls;
- dash::mpd::IMPD *mpd;
+ libdash::framework::mpd::IMPDWrapper *mpdWrapper;
dash::mpd::IPeriod *period;
dash::mpd::IAdaptationSet *adaptationSet;
dash::mpd::IRepresentation *representation;
uint32_t segmentOffset;
+ viper::managers::StreamType type;
};
}
}