From d9156e253f0042eede16289a19b406d82f3a4db5 Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 13 Oct 2021 12:45:24 +0200 Subject: [PATCH] Upgraded libvlc from 2.1.12 to 3.4.1 --- app/build.gradle | 6 +++--- .../it/danieleverducci/ojo/ui/SurveillanceFragment.java | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8107eca..1ce3f36 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,10 +8,10 @@ android { defaultConfig { applicationId "it.danieleverducci.ojo" - minSdkVersion 16 + minSdkVersion 17 targetSdkVersion 30 versionCode 1 - versionName "1.0" + versionName "0.0.1" vectorDrawables.useSupportLibrary = true @@ -39,7 +39,7 @@ dependencies { implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' - implementation 'de.mrmaffen:libvlc-android:2.1.12@aar' + implementation 'org.videolan.android:libvlc-all:3.4.1' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java index 2b08d9b..bdeed43 100644 --- a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java +++ b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java @@ -1,12 +1,9 @@ package it.danieleverducci.ojo.ui; import android.content.Context; -import android.graphics.Color; import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.util.DisplayMetrics; -import android.util.Log; import android.view.LayoutInflater; import android.view.SurfaceHolder; import android.view.SurfaceView; @@ -19,13 +16,9 @@ import android.view.WindowInsetsController; import android.widget.LinearLayout; import androidx.annotation.NonNull; -import androidx.core.view.WindowCompat; -import androidx.core.view.WindowInsetsCompat; -import androidx.core.view.WindowInsetsControllerCompat; import androidx.fragment.app.Fragment; -import androidx.navigation.fragment.NavHostFragment; -import org.videolan.libvlc.IVLCVout; +import org.videolan.libvlc.interfaces.IVLCVout; import org.videolan.libvlc.LibVLC; import org.videolan.libvlc.Media; import org.videolan.libvlc.MediaPlayer;