diff options
author | jacko <jsamain+fdio@cisco.com> | 2017-06-23 16:12:18 +0200 |
---|---|---|
committer | jacko <jsamain+fdio@cisco.com> | 2017-06-23 16:12:18 +0200 |
commit | a644414fd2c3a3f7f41e716b6875a78981e4cfe1 (patch) | |
tree | 13fc8ff2f6072add96f987a1a68a15c22d68d911 /Adaptation/RateBasedAdaptation.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 'Adaptation/RateBasedAdaptation.h')
-rw-r--r-- | Adaptation/RateBasedAdaptation.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Adaptation/RateBasedAdaptation.h b/Adaptation/RateBasedAdaptation.h index cbf7471c..670bc031 100644 --- a/Adaptation/RateBasedAdaptation.h +++ b/Adaptation/RateBasedAdaptation.h @@ -29,7 +29,8 @@ namespace adaptation class RateBasedAdaptation : public AbstractAdaptationLogic { public: - RateBasedAdaptation(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, bool isVid, struct AdaptationParameters *params); +// RateBasedAdaptation(dash::mpd::IMPD *mpd, dash::mpd::IPeriod *period, dash::mpd::IAdaptationSet *adaptationSet, bool isVid, struct AdaptationParameters *params); + RateBasedAdaptation(viper::managers::StreamType type, libdash::framework::mpd::MPDWrapper *mpdWrapper, struct AdaptationParameters *params); virtual ~RateBasedAdaptation(); virtual LogicType getType(); @@ -47,12 +48,12 @@ public: void ewma(uint64_t bps); void checkedByDASHReceiver(); private: - uint64_t currentBitrate; + uint64_t currentBitrate; std::vector<uint64_t> availableBitrates; viper::managers::IMultimediaManagerBase *multimediaManager; - dash::mpd::IRepresentation *representation; - double alpha; - uint64_t averageBw; + dash::mpd::IRepresentation *representation; + double alpha; + uint64_t averageBw; }; } } |