corrections 88/6388/1
authorAngelo Mantellini (manangel) <[email protected]>
Mon, 24 Apr 2017 16:43:57 +0000 (18:43 +0200)
committerAngelo Mantellini (manangel) <[email protected]>
Mon, 24 Apr 2017 16:43:57 +0000 (18:43 +0200)
Change-Id: I07d00ea0d02b044d543a83bca10f8e73a281f90b
Signed-off-by: Angelo Mantellini (manangel) <[email protected]>
Input/DASHReceiver.cpp
Input/ICNConnectionConsumerApi.cpp
Input/ICNConnectionConsumerApi.h
MPD/AdaptationSetHelper.h
UI/DASHPlayer.cpp
UI/DASHPlayer.h
android/AndroidManifest.xml
android/gradle.properties
android/src/org/player/viper/ViperActivity.java
viper.pro

index df9d019..e7a5c5c 100644 (file)
@@ -133,7 +133,7 @@ MediaObject*        DASHReceiver::GetNextSegment    ()
 
     if(this->segmentNumber >= this->representationStream->getSize())
     {
-        qDebug("looping? : %s\n", this->isLooping ? "YES" : "NO");
+        //qDebug("looping? : %s\n", this->isLooping ? "YES" : "NO");
         if(this->isLooping)
         {
             this->segmentNumber = 0;
index 9de8290..d38642e 100644 (file)
@@ -68,7 +68,6 @@ ICNConnectionConsumerApi::ICNConnectionConsumerApi(double alpha, float beta, flo
     }
     if(!configFile)
     {
-        qDebug("beta %f, drop %f", this->beta, this->drop);
         this->myConsumer->setSocketOption(RaaqmTransportOptions::BETA_VALUE, this->beta);
         this->myConsumer->setSocketOption(RaaqmTransportOptions::DROP_FACTOR, this->drop);
     }
@@ -111,8 +110,6 @@ void ICNConnectionConsumerApi::Init(IChunk *chunk) {
         memset(this->deezData, 0, this->deezDataSize);
     }
 
-    qDebug("ICN_Connection:\tINTIATED_to_name %s\n", m_name.c_str());
-    qDebug("ICN_Connection:\tSTARTING DOWNLOAD %s\n", m_name.c_str());
 }
 
 void ICNConnectionConsumerApi::InitForMPD(const std::string& url)
index a034344..a62f6b0 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef QTPLAYER_INPUT_ICNCONNECTIONCONSUMERAPI_H_
 #define QTPLAYER_INPUT_ICNCONNECTIONCONSUMERAPI_H_
 
-#include <QMessageLogger>
 #include "../Portable/Networking.h"
 #include "IICNConnection.h"
 #include "../debug.h"
index 683d0f0..4172441 100644 (file)
@@ -13,7 +13,6 @@
 #define LIBDASH_FRAMEWORK_MPD_ADAPTATIONSETHELPER_H_
 
 #include "IMPD.h"
-#include <QMessageLogger>
 
 namespace libdash
 {
index b87dde7..52b45b0 100644 (file)
@@ -371,7 +371,7 @@ void DASHPlayer::onStopped()
                 }
 
             } else {
-                qDebug("wrong position");
+                //qDebug("wrong position");
             }
         }
         else
@@ -915,7 +915,7 @@ void DASHPlayer::setRateEstimator(int rateEstimator)
 
 void DASHPlayer::error(const QtAV::AVError &e)
 {
-    qDebug("error in the player!");
+    //qDebug("error in the player!");
     seekVideo(0);
 }
 
index 8913a84..f63dfbb 100644 (file)
@@ -23,7 +23,6 @@
 #include "../Buffer/IBufferObserver.h"
 #include "../MPD/AdaptationSetHelper.h"
 #include "../Common/Config.h"
-#include <QMessageLogger>
 #include <qimage.h>
 #include<map>
 #include<tuple>
index f954847..23a544f 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <manifest package="org.qtav.qmlplayer" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="7" android:installLocation="auto">
     <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="QtPlayer" android:icon="@drawable/icon">
-        <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtav.qmlplayer.QMLPlayerActivity" android:label="QtPlayer" android:screenOrientation="unspecified" android:launchMode="singleTop">
+        <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.player.viper.ViperActivity" android:label="QtPlayer" android:screenOrientation="unspecified" android:launchMode="singleTop">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.LAUNCHER"/>
index 8b01d07..a694f3f 100644 (file)
@@ -3,7 +3,7 @@
 # This file must *NOT* be checked into Version Control Systems,
 # as it contains information specific to your local configuration.
 
-androidBuildToolsVersion=25.0.2
-androidCompileSdkVersion=25
+androidBuildToolsVersion=23.0.2
+androidCompileSdkVersion=23
 buildDir=.build
 qt5AndroidDir=/Users/angelomantellini/Qt/5.7/android_armv7/src/android/java
index a29025e..e046d12 100755 (executable)
@@ -27,7 +27,7 @@ public class ViperActivity extends QtActivity
 {
     private final static String TAG = "ViperPlayer";
     private static String m_request_url;
-    private static QMLPlayerActivity m_instance;
+    private static ViperActivity m_instance;
     public ViperActivity() {
         m_instance = this;
     }
index 217e558..28b2659 100644 (file)
--- a/viper.pro
+++ b/viper.pro
@@ -18,8 +18,7 @@ android {
   QT += androidextras
 }
 
-CONFIG -= release
-CONFIG += debug
+CONFIG += release
 CONFIG += c++11
 
 
@@ -280,10 +279,11 @@ unix:!macx:!android {
 }
 
 macx:!ios {
+
 #SOURCE is ok
     INCLUDEPATH += /usr/local/include
     INCLUDEPATH += /usr/local/include/libdash
-    LIBS += -L"/usr/local/lib" -framework CoreServices -ldash -lavformat -lavutil -lavcodec -lboost_system -lboost_regex -lswscale -licnet -lssl -lcrypto
+    LIBS +=  -framework CoreServices -L"/usr/local/lib"  -ldash -lavformat -lavutil -lavcodec -lboost_system -lboost_regex -lswscale -licnet -lssl -lcrypto
 }
 SOURCES *= main.cpp
 android {
@@ -298,8 +298,9 @@ android {
     android/gradlew.bat
 
   ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
-
-    LIBS +=  -lconsumer-producer -ldash  -lavcodec -lavutil -lavformat   -lboost_system # -lccnx_api_control -lccnx_api_notify -lccnx_api_portal -lccnx_common -lccnx_transport_rta #-lparc -lcrypto  #-llongbow-textplain -llongbow-ansiterm -llongbow
+    INCLUDEPATH += $$(QT_HOME)/Qt/5.7/android_armv7/include
+    INCLUDEPATH += $$(QT_HOME)/Qt/5.7/android_armv7/include/libdash
+    LIBS += -lstdc++  -licnet -lgnustl_shared -ldash  -lavcodec -lavutil -lavformat   -lboost_system # -lccnx_api_control -lccnx_api_notify -lccnx_api_portal -lccnx_common -lccnx_transport_rta #-lparc -lcrypto  #-llongbow-textplain -llongbow-ansiterm -llongbow
 #user can put fonts in android/assets/fonts
 }