|
|
|
@ -32,7 +32,6 @@ |
|
|
|
#include "mpd/MPDFactory.h" |
|
|
|
#include "mpd/ProgramInformation.h" |
|
|
|
#include "xml/DOMParser.h" |
|
|
|
#include "../adaptative/logic/RateBasedAdaptationLogic.h" |
|
|
|
#include "../adaptative/tools/Helper.h" |
|
|
|
#include "../adaptative/http/HTTPConnectionManager.h" |
|
|
|
#include <vlc_stream.h> |
|
|
|
@ -200,27 +199,3 @@ bool DASHManager::isDASH(stream_t *stream) |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
AbstractAdaptationLogic *DASHManager::createLogic(AbstractAdaptationLogic::LogicType type, |
|
|
|
HTTPConnectionManager *conn) |
|
|
|
{ |
|
|
|
switch(type) |
|
|
|
{ |
|
|
|
case AbstractAdaptationLogic::FixedRate: |
|
|
|
{ |
|
|
|
size_t bps = var_InheritInteger(p_demux, "adaptative-bw") * 8192; |
|
|
|
return new (std::nothrow) FixedRateAdaptationLogic(bps); |
|
|
|
} |
|
|
|
case AbstractAdaptationLogic::Default: |
|
|
|
case AbstractAdaptationLogic::RateBased: |
|
|
|
{ |
|
|
|
int width = var_InheritInteger(p_demux, "adaptative-width"); |
|
|
|
int height = var_InheritInteger(p_demux, "adaptative-height"); |
|
|
|
RateBasedAdaptationLogic *logic = new (std::nothrow) RateBasedAdaptationLogic(width, height); |
|
|
|
conn->setDownloadRateObserver(logic); |
|
|
|
return logic; |
|
|
|
} |
|
|
|
default: |
|
|
|
return PlaylistManager::createLogic(type, conn); |
|
|
|
} |
|
|
|
} |
|
|
|
|