using namespace dash::mpd;
AbstractAdaptationLogic::AbstractAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
+ mpdManager (mpdManager),
bpsAvg (0),
bpsLastChunk (0),
- mpdManager (mpdManager),
stream (stream),
bufferedMicroSec (0),
bufferedPercent (0)
uint64_t getBpsLastChunk () const;
int getBufferPercent () const;
+ protected:
+ dash::mpd::MPDManager *mpdManager;
+
private:
int bpsAvg;
long bpsLastChunk;
- dash::mpd::MPDManager *mpdManager;
stream_t *stream;
mtime_t bufferedMicroSec;
int bufferedPercent;
AlwaysBestAdaptationLogic::AlwaysBestAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
AbstractAdaptationLogic (mpdManager, stream)
{
- this->mpdManager = mpdManager;
this->count = 0;
this->initSchedule();
}
private:
std::vector<mpd::ISegment *> schedule;
- dash::mpd::MPDManager *mpdManager;
size_t count;
dash::mpd::Representation *bestRepresentation;
--- /dev/null
+#include "AlwaysLowestAdaptationLogic.hpp"
+
+AlwaysLowestAdaptationLogic::AlwaysLowestAdaptationLogic()
+{
+}
--- /dev/null
+#ifndef ALWAYSLOWESTADAPTATIONLOGIC_HPP
+#define ALWAYSLOWESTADAPTATIONLOGIC_HPP
+
+class AlwaysLowestAdaptationLogic
+{
+public:
+ AlwaysLowestAdaptationLogic();
+};
+
+#endif // ALWAYSLOWESTADAPTATIONLOGIC_HPP
RateBasedAdaptationLogic::RateBasedAdaptationLogic (MPDManager *mpdManager, stream_t *stream) :
AbstractAdaptationLogic (mpdManager, stream),
- mpdManager (mpdManager),
count (0),
currentPeriod (mpdManager->getFirstPeriod())
{
const dash::mpd::Representation *getCurrentRepresentation() const;
private:
- dash::mpd::MPDManager *mpdManager;
size_t count;
dash::mpd::Period *currentPeriod;
int width;