aboutsummaryrefslogtreecommitdiffstats
path: root/UI/DASHPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'UI/DASHPlayer.cpp')
-rw-r--r--UI/DASHPlayer.cpp67
1 files changed, 9 insertions, 58 deletions
diff --git a/UI/DASHPlayer.cpp b/UI/DASHPlayer.cpp
index 331748b5..e2910ea8 100644
--- a/UI/DASHPlayer.cpp
+++ b/UI/DASHPlayer.cpp
@@ -175,7 +175,7 @@ void DASHPlayer::setSettings(int period, int videoAdaptationSet, int videoRepres
this->currentSettings.audioRepresentation = audioRepresentation;
}
-bool DASHPlayer::downloadMPD(const QString &url, const QString &adaptationLogic, bool icn)
+bool DASHPlayer::downloadMPD(const QString &adaptationLogic, bool icn)
{
if (this->gui->getStop())
@@ -191,15 +191,9 @@ bool DASHPlayer::downloadMPD(const QString &url, const QString &adaptationLogic,
this->gui->initVideoPlayer();
this->icn = icn;
this->segment = 0;
- std::string mUrl;
- if(this->icn)
- {
- mUrl = this->icnPrefix + url.toStdString() + this->icnSuffix;
- }
- else
- {
- mUrl = this->httpPrefix + url.toStdString() + this->httpSuffix;
- }
+ std::string mUrl = this->videoURI;
+
+ Debug("MPD is: %s\n", mUrl.c_str());
if (!this->onDownloadMPDPressed(mUrl))
return false;
@@ -420,10 +414,7 @@ void DASHPlayer::reloadParameters()
{
this->beta = config->beta();
this->drop = config->drop();
- this->icnPrefix = config->icnPrefix().toStdString();
- this->httpPrefix = config->httpPrefix().toStdString();
- this->icnSuffix = config->icnSuffix().toStdString();
- this->httpSuffix = config->httpSuffix().toStdString();
+ this->videoURI = config->videoURI().toStdString();
this->alpha = config->alpha();
this->repeat = config->repeat();
this->parametersAdaptation = (struct AdaptationParameters *)malloc(sizeof(struct AdaptationParameters));
@@ -450,16 +441,6 @@ void DASHPlayer::reloadParameters()
this->parametersAdaptation->Panda_Epsilon = config->pandaParamEpsilon();
}
-QString DASHPlayer::getLastPlayed()
-{
- return config->lastPlayed();
-}
-
-void DASHPlayer::setLastPlayed(QString lastPlayed)
-{
- config->setLastPlayed(lastPlayed);
-}
-
QString DASHPlayer::getAdaptationLogic()
{
return config->adaptationLogic();
@@ -480,44 +461,14 @@ void DASHPlayer::setIcn(bool icn)
config->setIcn(icn);
}
-QString DASHPlayer::getIcnPrefix()
-{
- return config->icnPrefix();
-}
-
-void DASHPlayer::setIcnPrefix(QString icnPrefix)
-{
- config->setIcnPrefix(icnPrefix);
-}
-
-QString DASHPlayer::getHttpPrefix()
-{
- return config->httpPrefix();
-}
-
-void DASHPlayer::setHttpPrefix(QString httpPrefix)
-{
- config->setHttpPrefix(httpPrefix);
-}
-
-QString DASHPlayer::getIcnSuffix()
-{
- return config->icnSuffix();
-}
-
-void DASHPlayer::setIcnSuffix(QString icnSuffix)
-{
- config->setIcnSuffix(icnSuffix);
-}
-
-QString DASHPlayer::getHttpSuffix()
+QString DASHPlayer::getVideoURI()
{
- return config->httpSuffix();
+ return config->videoURI();
}
-void DASHPlayer::setHttpSuffix(QString httpSuffix)
+void DASHPlayer::setVideoURI(QString videoURI)
{
- config->setHttpSuffix(httpSuffix);
+ config->setVideoURI(videoURI);
}
qreal DASHPlayer::getAlpha()