Date: Wed, 1 Mar 2023 23:22:30 +0100
Subject: [PATCH 033/133] Added the migration
---
.../newpipe/settings/SettingMigrations.java | 36 ++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
index b1e2c04ebf3..21c0e1be4dc 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
@@ -108,6 +108,39 @@ protected void migrate(final Context context) {
}
};
+ public static final Migration MIGRATION_4_5 = new Migration(4, 5) {
+ @Override
+ protected void migrate(final Context context) {
+ boolean brightnessGestureSwitch = sp.getBoolean(
+ context.getString(R.string.left_gesture_control_key), false);
+ boolean volumeGestureSwitch = sp.getBoolean(
+ context.getString(R.string.right_gesture_control_key), false);
+
+ SharedPreferences.Editor editor = sp.edit();
+
+ if (volumeGestureSwitch) {
+ if (!brightnessGestureSwitch) {
+ editor.putString(context.getString(R.string.left_gesture_control_key),
+ context.getString(R.string.brightness));
+ }
+ editor.putString(context.getString(R.string.right_gesture_control_key),
+ context.getString(R.string.volume));
+ } else if (brightnessGestureSwitch) {
+ editor.putString(context.getString(R.string.right_gesture_control_key),
+ context.getString(R.string.brightness));
+ editor.putString(context.getString(R.string.left_gesture_control_key),
+ context.getString(R.string.volume));
+ } else {
+ editor.putString(context.getString(R.string.left_gesture_control_key),
+ context.getString(R.string.none));
+ editor.putString(context.getString(R.string.right_gesture_control_key),
+ context.getString(R.string.none));
+ }
+
+ editor.apply();
+ }
+ };
+
/**
* List of all implemented migrations.
*
@@ -119,12 +152,13 @@ protected void migrate(final Context context) {
MIGRATION_1_2,
MIGRATION_2_3,
MIGRATION_3_4,
+ MIGRATION_4_5,
};
/**
* Version number for preferences. Must be incremented every time a migration is necessary.
*/
- public static final int VERSION = 4;
+ public static final int VERSION = 5;
public static void initMigrations(final Context context, final boolean isFirstRun) {
From 3c72992c395fc1053c821ed8069bfedf40449ad3 Mon Sep 17 00:00:00 2001
From: Marius Wagner
Date: Sun, 26 Feb 2023 17:00:06 +0100
Subject: [PATCH 034/133] Update
app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
Co-authored-by: Stypox
---
.../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
index 7654e7689c6..0950afc3e6a 100644
--- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java
@@ -2013,9 +2013,9 @@ private void setupBrightness() {
restoreDefaultBrightness();
} else {
// Do not restore if user has disabled brightness gesture
- if (PlayerHelper.getActionForRightGestureSide(activity)
+ if (!PlayerHelper.getActionForRightGestureSide(activity)
.equals(getString(R.string.brightness_control_key))
- || PlayerHelper.getActionForLeftGestureSide(activity)
+ && !PlayerHelper.getActionForLeftGestureSide(activity)
.equals(getString(R.string.brightness_control_key))) {
return;
}
From d2735607b84a5fbe442302ec9464161faed5daa1 Mon Sep 17 00:00:00 2001
From: ge78fug
Date: Mon, 3 Apr 2023 23:11:40 +0200
Subject: [PATCH 035/133] Changed the default of the switches
---
.../java/org/schabi/newpipe/settings/SettingMigrations.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
index 21c0e1be4dc..e2bb18b2d47 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
@@ -112,9 +112,9 @@ protected void migrate(final Context context) {
@Override
protected void migrate(final Context context) {
boolean brightnessGestureSwitch = sp.getBoolean(
- context.getString(R.string.left_gesture_control_key), false);
+ context.getString(R.string.left_gesture_control_key), true);
boolean volumeGestureSwitch = sp.getBoolean(
- context.getString(R.string.right_gesture_control_key), false);
+ context.getString(R.string.right_gesture_control_key), true);
SharedPreferences.Editor editor = sp.edit();
From 704e9bd7b6e4d58d10b0cce349cd3f8a13e46b85 Mon Sep 17 00:00:00 2001
From: Stypox
Date: Tue, 4 Apr 2023 10:02:01 +0200
Subject: [PATCH 036/133] Fix checkstyle
---
.../java/org/schabi/newpipe/settings/SettingMigrations.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
index e2bb18b2d47..818d587d58d 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
@@ -111,12 +111,12 @@ protected void migrate(final Context context) {
public static final Migration MIGRATION_4_5 = new Migration(4, 5) {
@Override
protected void migrate(final Context context) {
- boolean brightnessGestureSwitch = sp.getBoolean(
+ final boolean brightnessGestureSwitch = sp.getBoolean(
context.getString(R.string.left_gesture_control_key), true);
- boolean volumeGestureSwitch = sp.getBoolean(
+ final boolean volumeGestureSwitch = sp.getBoolean(
context.getString(R.string.right_gesture_control_key), true);
- SharedPreferences.Editor editor = sp.edit();
+ final SharedPreferences.Editor editor = sp.edit();
if (volumeGestureSwitch) {
if (!brightnessGestureSwitch) {
From 7350b1f32ecd4d571d601036b46b84240658c1ab Mon Sep 17 00:00:00 2001
From: Stypox
Date: Tue, 4 Apr 2023 10:38:13 +0200
Subject: [PATCH 037/133] Add notice to README to not open feature PRs
---
.github/CONTRIBUTING.md | 2 ++
README.md | 2 ++
2 files changed, 4 insertions(+)
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index d5fdc97e0a7..088707b6ee2 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,3 +1,5 @@
+### Please do **not** open pull requests for *new features* now, as we are planning to rewrite large chunks of the code. Only bugfix PRs will be accepted. More details will be announced soon!
+
NewPipe contribution guidelines
===============================
diff --git a/README.md b/README.md
index 52e6eef1a96..f184b536078 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+### Please do **not** open pull requests for *new features* now, as we are planning to rewrite large chunks of the code. Only bugfix PRs will be accepted. More details will be announced soon!
+
NewPipe
A libre lightweight streaming front-end for Android.
From 4bb45c001de54d9734f7e3e1c7fbed75744b9c3e Mon Sep 17 00:00:00 2001
From: Stypox
Date: Tue, 4 Apr 2023 10:27:43 +0200
Subject: [PATCH 038/133] Fix settings migration
---
.../newpipe/settings/SettingMigrations.java | 30 +++++--------------
1 file changed, 8 insertions(+), 22 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
index 818d587d58d..1bfaec6c287 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java
@@ -111,31 +111,17 @@ protected void migrate(final Context context) {
public static final Migration MIGRATION_4_5 = new Migration(4, 5) {
@Override
protected void migrate(final Context context) {
- final boolean brightnessGestureSwitch = sp.getBoolean(
- context.getString(R.string.left_gesture_control_key), true);
- final boolean volumeGestureSwitch = sp.getBoolean(
- context.getString(R.string.right_gesture_control_key), true);
+ final boolean brightness = sp.getBoolean("brightness_gesture_control", true);
+ final boolean volume = sp.getBoolean("volume_gesture_control", true);
final SharedPreferences.Editor editor = sp.edit();
- if (volumeGestureSwitch) {
- if (!brightnessGestureSwitch) {
- editor.putString(context.getString(R.string.left_gesture_control_key),
- context.getString(R.string.brightness));
- }
- editor.putString(context.getString(R.string.right_gesture_control_key),
- context.getString(R.string.volume));
- } else if (brightnessGestureSwitch) {
- editor.putString(context.getString(R.string.right_gesture_control_key),
- context.getString(R.string.brightness));
- editor.putString(context.getString(R.string.left_gesture_control_key),
- context.getString(R.string.volume));
- } else {
- editor.putString(context.getString(R.string.left_gesture_control_key),
- context.getString(R.string.none));
- editor.putString(context.getString(R.string.right_gesture_control_key),
- context.getString(R.string.none));
- }
+ editor.putString(context.getString(R.string.right_gesture_control_key),
+ context.getString(volume
+ ? R.string.volume_control_key : R.string.none_control_key));
+ editor.putString(context.getString(R.string.left_gesture_control_key),
+ context.getString(brightness
+ ? R.string.brightness_control_key : R.string.none_control_key));
editor.apply();
}
From c08538d25dbe9f4cf005558ef0aa5c2d20144fc4 Mon Sep 17 00:00:00 2001
From: TobiGr
Date: Tue, 4 Apr 2023 17:42:34 +0200
Subject: [PATCH 039/133] Remove jsoup files from APK
Two jsoup files slipped into the META-INF dir of the APK for some reason. README.md and CHANGES are removed automatically now.
---
app/build.gradle | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/app/build.gradle b/app/build.gradle
index a2617aa5810..6662b38460b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -96,6 +96,13 @@ android {
buildFeatures {
viewBinding true
}
+
+ packagingOptions {
+ // remove two files which belong to jsoup
+ // no idea how they ended up in the META-INF dir...
+ exclude 'META-INF/README.md'
+ exclude 'META-INF/CHANGES'
+ }
}
ext {
@@ -313,6 +320,7 @@ static String getGitWorkingBranch() {
}
}
+// fix reproducible builds
project.afterEvaluate {
tasks.compileReleaseArtProfile.doLast {
outputs.files.each { file ->
From 74bd28cbd9fff4e294b7ede63f09d946084ac804 Mon Sep 17 00:00:00 2001
From: Isira Seneviratne
Date: Sun, 9 Apr 2023 18:45:57 +0530
Subject: [PATCH 040/133] Update AndroidX Core to 1.10.0.
---
app/build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/build.gradle b/app/build.gradle
index a2617aa5810..5e3e5cbcb3c 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -205,7 +205,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- implementation 'androidx.core:core-ktx:1.8.0'
+ implementation 'androidx.core:core-ktx:1.10.0'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation 'androidx.fragment:fragment-ktx:1.4.1'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${androidxLifecycleVersion}"
From a4a9957a155ddb2564b6381002a759acb7a1ce61 Mon Sep 17 00:00:00 2001
From: AudricV <74829229+AudricV@users.noreply.github.com>
Date: Thu, 18 Aug 2022 18:35:22 +0200
Subject: [PATCH 041/133] Add ExoPlayerSettingsFragment and move playback load
interval size setting into it
This fragment has been added into SettingsResourceRegistry, to allow searches
in its options.
It has been placed at the place of the previous playback load interval size
setting (so in Video and Audio settings).
---
.../settings/ExoPlayerSettingsFragment.java | 14 ++++++++++++++
.../settings/SettingsResourceRegistry.java | 1 +
app/src/main/res/values/settings_keys.xml | 2 ++
app/src/main/res/values/strings.xml | 4 ++++
app/src/main/res/xml/exoplayer_settings.xml | 16 ++++++++++++++++
app/src/main/res/xml/video_audio_settings.xml | 12 +++++-------
6 files changed, 42 insertions(+), 7 deletions(-)
create mode 100644 app/src/main/java/org/schabi/newpipe/settings/ExoPlayerSettingsFragment.java
create mode 100644 app/src/main/res/xml/exoplayer_settings.xml
diff --git a/app/src/main/java/org/schabi/newpipe/settings/ExoPlayerSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/ExoPlayerSettingsFragment.java
new file mode 100644
index 00000000000..7e740f8698d
--- /dev/null
+++ b/app/src/main/java/org/schabi/newpipe/settings/ExoPlayerSettingsFragment.java
@@ -0,0 +1,14 @@
+package org.schabi.newpipe.settings;
+
+import android.os.Bundle;
+
+import androidx.annotation.Nullable;
+
+public class ExoPlayerSettingsFragment extends BasePreferenceFragment {
+
+ @Override
+ public void onCreatePreferences(@Nullable final Bundle savedInstanceState,
+ @Nullable final String rootKey) {
+ addPreferencesFromResourceRegistry();
+ }
+}
diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingsResourceRegistry.java b/app/src/main/java/org/schabi/newpipe/settings/SettingsResourceRegistry.java
index 78ddb37866d..b3d0741bb44 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/SettingsResourceRegistry.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/SettingsResourceRegistry.java
@@ -40,6 +40,7 @@ private SettingsResourceRegistry() {
add(PlayerNotificationSettingsFragment.class, R.xml.player_notification_settings);
add(UpdateSettingsFragment.class, R.xml.update_settings);
add(VideoAudioSettingsFragment.class, R.xml.video_audio_settings);
+ add(ExoPlayerSettingsFragment.class, R.xml.exoplayer_settings);
}
private SettingRegistryEntry add(
diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml
index 8f3e8e192d7..f00c25c8c6e 100644
--- a/app/src/main/res/values/settings_keys.xml
+++ b/app/src/main/res/values/settings_keys.xml
@@ -1366,4 +1366,6 @@
streams_notifications_channels
player_notification_screen
+
+ exoplayer_settings_key
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 43705056bc6..1dad7c01d56 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -773,4 +773,8 @@
Partially watched
Upcoming
Sort
+ ExoPlayer settings
+ Manage some ExoPlayer settings. These changes require a player restart to take effect
+ Use ExoPlayer\'s decoder fallback feature
+ Enable this option if you have decoder initialization issues, which falls back to lower-priority decoders if primary decoders initialization fail. This may result in poor playback performance than when using primary decoders
\ No newline at end of file
diff --git a/app/src/main/res/xml/exoplayer_settings.xml b/app/src/main/res/xml/exoplayer_settings.xml
new file mode 100644
index 00000000000..fd563711509
--- /dev/null
+++ b/app/src/main/res/xml/exoplayer_settings.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/video_audio_settings.xml b/app/src/main/res/xml/video_audio_settings.xml
index e4485f1541b..75a925c65a7 100644
--- a/app/src/main/res/xml/video_audio_settings.xml
+++ b/app/src/main/res/xml/video_audio_settings.xml
@@ -61,13 +61,11 @@
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
-
From 41da8fc05faf744f7e9a57a1a6adf2225be6cfd4 Mon Sep 17 00:00:00 2001
From: AudricV <74829229+AudricV@users.noreply.github.com>
Date: Thu, 18 Aug 2022 18:59:45 +0200
Subject: [PATCH 042/133] Add ability to use ExoPlayer's decoder fallback
option
This option could help to avoid decoder initialization issues, which falls back
to lower-priority decoders if decoder initialization fails. This may result in
poor playback performance than when using primary decoders.
It is disabled by default, but can be enabled in ExoPlayer settings.
---
app/src/main/java/org/schabi/newpipe/player/Player.java | 4 +++-
app/src/main/res/values/settings_keys.xml | 2 ++
app/src/main/res/xml/exoplayer_settings.xml | 8 ++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java
index 4243c233bc9..cc75a2c22a3 100644
--- a/app/src/main/java/org/schabi/newpipe/player/Player.java
+++ b/app/src/main/java/org/schabi/newpipe/player/Player.java
@@ -263,7 +263,9 @@ public Player(@NonNull final PlayerService service) {
final PlayerDataSource dataSource = new PlayerDataSource(context,
new DefaultBandwidthMeter.Builder(context).build());
loadController = new LoadController();
- renderFactory = new DefaultRenderersFactory(context);
+ renderFactory = new DefaultRenderersFactory(context)
+ .setEnableDecoderFallback(prefs.getBoolean(
+ context.getString(R.string.use_exoplayer_decoder_fallback_key), false));
videoResolver = new VideoPlaybackResolver(context, dataSource, getQualityResolver());
audioResolver = new AudioPlaybackResolver(context, dataSource);
diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml
index f00c25c8c6e..7d8c48bda74 100644
--- a/app/src/main/res/values/settings_keys.xml
+++ b/app/src/main/res/values/settings_keys.xml
@@ -1367,5 +1367,7 @@
streams_notifications_channels
player_notification_screen
+
exoplayer_settings_key
+ use_exoplayer_decoder_fallback_key
diff --git a/app/src/main/res/xml/exoplayer_settings.xml b/app/src/main/res/xml/exoplayer_settings.xml
index fd563711509..f5314182eec 100644
--- a/app/src/main/res/xml/exoplayer_settings.xml
+++ b/app/src/main/res/xml/exoplayer_settings.xml
@@ -13,4 +13,12 @@
app:singleLineTitle="false"
app:iconSpaceReserved="false" />
+
+
\ No newline at end of file
From a6ff85a208ec174f48ea31f4487c66d490a1ae1c Mon Sep 17 00:00:00 2001
From: AudricV <74829229+AudricV@users.noreply.github.com>
Date: Thu, 18 Aug 2022 19:21:29 +0200
Subject: [PATCH 043/133] Move media tunneling setting to ExoPlayer settings
and make this setting available on release builds
Media tunneling may be not supported by more devices than the ones we
whitelisted before.
As a matter of fact, the list of devices on which media tunneling is disabled
could be not maintainable in the future, especially if the list of devices
grows more and more.
A preferable solution is to allow users to configure this setting themselves,
allowing them to not wait for their device(s) to be whitelisted in a future
NewPipe update.
This solution has been applied in this commit and works on every build type.
The corresponding preference in the debug settings has been of course removed
and the code used to prevent media tunneling activation on specific devices has
been removed.
---
.../org/schabi/newpipe/player/Player.java | 11 ++------
.../org/schabi/newpipe/util/DeviceUtils.java | 28 -------------------
app/src/main/res/values/settings_keys.xml | 2 +-
app/src/main/res/xml/debug_settings.xml | 8 ------
app/src/main/res/xml/exoplayer_settings.xml | 8 ++++++
5 files changed, 11 insertions(+), 46 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java
index cc75a2c22a3..5dc9382e7ba 100644
--- a/app/src/main/java/org/schabi/newpipe/player/Player.java
+++ b/app/src/main/java/org/schabi/newpipe/player/Player.java
@@ -77,7 +77,6 @@
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
import com.google.android.exoplayer2.trackselection.MappingTrackSelector;
import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter;
-import com.google.android.exoplayer2.util.Util;
import com.google.android.exoplayer2.video.VideoSize;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;
@@ -115,7 +114,6 @@
import org.schabi.newpipe.player.ui.PopupPlayerUi;
import org.schabi.newpipe.player.ui.VideoPlayerUi;
import org.schabi.newpipe.util.DependentPreferenceHelper;
-import org.schabi.newpipe.util.DeviceUtils;
import org.schabi.newpipe.util.ListHelper;
import org.schabi.newpipe.util.NavigationHelper;
import org.schabi.newpipe.util.PicassoHelper;
@@ -522,16 +520,11 @@ private void initPlayer(final boolean playOnReady) {
// Setup UIs
UIs.call(PlayerUi::initPlayer);
- // enable media tunneling
- if (DEBUG && PreferenceManager.getDefaultSharedPreferences(context)
+ // Disable media tunneling if requested by the user from ExoPlayer settings
+ if (!PreferenceManager.getDefaultSharedPreferences(context)
.getBoolean(context.getString(R.string.disable_media_tunneling_key), false)) {
- Log.d(TAG, "[" + Util.DEVICE_DEBUG_INFO + "] "
- + "media tunneling disabled in debug preferences");
- } else if (DeviceUtils.shouldSupportMediaTunneling()) {
trackSelector.setParameters(trackSelector.buildUponParameters()
.setTunnelingEnabled(true));
- } else if (DEBUG) {
- Log.d(TAG, "[" + Util.DEVICE_DEBUG_INFO + "] does not support media tunneling");
}
}
//endregion
diff --git a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
index 4b08cfcb501..f656c61446a 100644
--- a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
+++ b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
@@ -36,22 +36,6 @@ public final class DeviceUtils {
private static Boolean isTV = null;
private static Boolean isFireTV = null;
- /*
- * Devices that do not support media tunneling
- */
- // Formuler Z8 Pro, Z8, CC, Z Alpha, Z+ Neo
- private static final boolean HI3798MV200 = Build.VERSION.SDK_INT == 24
- && Build.DEVICE.equals("Hi3798MV200");
- // Zephir TS43UHD-2
- private static final boolean CVT_MT5886_EU_1G = Build.VERSION.SDK_INT == 24
- && Build.DEVICE.equals("cvt_mt5886_eu_1g");
- // Hilife TV
- private static final boolean REALTEKATV = Build.VERSION.SDK_INT == 25
- && Build.DEVICE.equals("RealtekATV");
- // Philips QM16XE
- private static final boolean QM16XE_U = Build.VERSION.SDK_INT == 23
- && Build.DEVICE.equals("QM16XE_U");
-
private DeviceUtils() {
}
@@ -211,18 +195,6 @@ public static int spToPx(@Dimension(unit = Dimension.SP) final int sp,
context.getResources().getDisplayMetrics());
}
- /**
- * Some devices have broken tunneled video playback but claim to support it.
- * See https://github.com/TeamNewPipe/NewPipe/issues/5911
- * @return false if affected device
- */
- public static boolean shouldSupportMediaTunneling() {
- return !HI3798MV200
- && !CVT_MT5886_EU_1G
- && !REALTEKATV
- && !QM16XE_U;
- }
-
public static boolean isLandscape(final Context context) {
return context.getResources().getDisplayMetrics().heightPixels < context.getResources()
.getDisplayMetrics().widthPixels;
diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml
index 7d8c48bda74..8ff61717206 100644
--- a/app/src/main/res/values/settings_keys.xml
+++ b/app/src/main/res/values/settings_keys.xml
@@ -227,7 +227,6 @@
show_memory_leaks_key
allow_disposed_exceptions_key
show_original_time_ago_key
- disable_media_tunneling_key
show_image_indicators_key
show_crash_the_player_key
check_new_streams
@@ -1369,5 +1368,6 @@
exoplayer_settings_key
+ disable_media_tunneling_key
use_exoplayer_decoder_fallback_key
diff --git a/app/src/main/res/xml/debug_settings.xml b/app/src/main/res/xml/debug_settings.xml
index 7405e47acf7..84bb281f31e 100644
--- a/app/src/main/res/xml/debug_settings.xml
+++ b/app/src/main/res/xml/debug_settings.xml
@@ -34,14 +34,6 @@
app:singleLineTitle="false"
app:iconSpaceReserved="false" />
-
-
+
+
\ No newline at end of file
From a02b92fd59ad7585c42fc5839c0d4b360150a4d0 Mon Sep 17 00:00:00 2001
From: AudricV <74829229+AudricV@users.noreply.github.com>
Date: Sun, 21 Aug 2022 22:20:29 +0200
Subject: [PATCH 044/133] Update playback load interval size setting
description
- Remove redundant player restart requirement note, as it is written on the
ExoPlayer settings description page;
- Add precision about the setting effect/limitation, as it only applies on
progressive contents/media sources and not on every content/media source;
- Remove translations of this description, to ensure that they will be updated
by translators.
---
app/src/main/res/values-ar/strings.xml | 1 -
app/src/main/res/values-az/strings.xml | 1 -
app/src/main/res/values-bs/strings.xml | 1 -
app/src/main/res/values-ckb/strings.xml | 1 -
app/src/main/res/values-cs/strings.xml | 1 -
app/src/main/res/values-da/strings.xml | 3 +--
app/src/main/res/values-de/strings.xml | 1 -
app/src/main/res/values-el/strings.xml | 1 -
app/src/main/res/values-es/strings.xml | 1 -
app/src/main/res/values-et/strings.xml | 1 -
app/src/main/res/values-eu/strings.xml | 1 -
app/src/main/res/values-fa/strings.xml | 1 -
app/src/main/res/values-fil/strings.xml | 1 -
app/src/main/res/values-fr/strings.xml | 1 -
app/src/main/res/values-gl/strings.xml | 1 -
app/src/main/res/values-he/strings.xml | 1 -
app/src/main/res/values-in/strings.xml | 1 -
app/src/main/res/values-it/strings.xml | 1 -
app/src/main/res/values-ja/strings.xml | 1 -
app/src/main/res/values-lv/strings.xml | 1 -
app/src/main/res/values-ml/strings.xml | 1 -
app/src/main/res/values-nl-rBE/strings.xml | 1 -
app/src/main/res/values-nl/strings.xml | 1 -
app/src/main/res/values-pl/strings.xml | 1 -
app/src/main/res/values-pt-rBR/strings.xml | 1 -
app/src/main/res/values-pt-rPT/strings.xml | 1 -
app/src/main/res/values-pt/strings.xml | 1 -
app/src/main/res/values-ro/strings.xml | 1 -
app/src/main/res/values-ru/strings.xml | 3 +--
app/src/main/res/values-sc/strings.xml | 1 -
app/src/main/res/values-sk/strings.xml | 1 -
app/src/main/res/values-sv/strings.xml | 1 -
app/src/main/res/values-te/strings.xml | 1 -
app/src/main/res/values-tr/strings.xml | 1 -
app/src/main/res/values-uk/strings.xml | 1 -
app/src/main/res/values-vi/strings.xml | 1 -
app/src/main/res/values-zh-rCN/strings.xml | 1 -
app/src/main/res/values-zh-rHK/strings.xml | 1 -
app/src/main/res/values-zh-rTW/strings.xml | 1 -
app/src/main/res/values/strings.xml | 2 +-
40 files changed, 3 insertions(+), 42 deletions(-)
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index 95e620ad8e4..97717799699 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -729,7 +729,6 @@
تعليق مثبت
LeakCanary غير متوفر
الافتراضي ExoPlayer
- تغيير حجم الفاصل الزمني للتحميل (حاليا %s). قد تؤدي القيمة الأقل إلى تسريع تحميل الفيديو الأولي. تتطلب التغييرات إعادة تشغيل المشغل
تكوين إشعار مشغل البث الحالي
الإشعارات
تحميل تفاصيل البث…
diff --git a/app/src/main/res/values-az/strings.xml b/app/src/main/res/values-az/strings.xml
index 8779fb8670e..14e915a9e3d 100644
--- a/app/src/main/res/values-az/strings.xml
+++ b/app/src/main/res/values-az/strings.xml
@@ -496,7 +496,6 @@
Video fayl xülasəsi prosesi üçün bildirişlər
Aç
Miniatürü 1:1 görünüş nisbətinə kəs
- Yükləmə intervalı həcmini dəyişdir (hazırda %s). Daha aşağı dəyər ilkin video yükləməni sürətləndirə bilər. Dəyişikliklər oynadıcını yenidən başlatmağı tələb edir
Yayım yaradıcısı, məzmunu və ya axtarış sorğusu haqqında əlavə məlumat olan üst məlumat qutularını gizlətmək üçün söndür
Əlaqəli yayımı əlavə etməklə (təkrarlanmayan) sonlanacaq oynatma növbəsini davam etdir
Kənar axtarış təklifləri
diff --git a/app/src/main/res/values-bs/strings.xml b/app/src/main/res/values-bs/strings.xml
index 855c577a62c..8654715a61c 100644
--- a/app/src/main/res/values-bs/strings.xml
+++ b/app/src/main/res/values-bs/strings.xml
@@ -70,7 +70,6 @@
Zapamtite posljednju veličinu i položaj iskočnog prozora
Koristite brzo neprecizno premotavanje
Neprecizno premotavanje dozvoljava pokretaču brže premotavanje s gorom preciznošću. Premotavanje za 5, 15 ili 25 sekundi ne radi s ovim
- Promijenite veličinu intervala za učitavanje (trenutačno %s). Niža vrijednost bi vam moglo ubrzat učitavanje videa. Trebate te ponovno učitati pokretač za promjenu.
Prebacivanje sa jednog pokretača na drugi bi van moglo zamijeniti pokretni red
Isključite da sakrijete komentare
Pitajte za potvrdu prije isčišćavanja reda
diff --git a/app/src/main/res/values-ckb/strings.xml b/app/src/main/res/values-ckb/strings.xml
index 53d32cd93ce..239740e5930 100644
--- a/app/src/main/res/values-ckb/strings.xml
+++ b/app/src/main/res/values-ckb/strings.xml
@@ -700,7 +700,6 @@
هەموو فایلە دابەزێنراوەکان لە دیسک بسڕدرێتەوە؟
پەیامەکان ناکاراکراون
پەیامم بکە
- "قەبارەی نێوان بارکردنەکە بگۆڕە (لە ئێستادا %s) . بەهایەکی کەمتر لەوانەیە بارکردنی ڤیدیۆی سەرەتایی خێراتر بکات. گۆڕانکارییەکان پێویستیان بە داگیرساندنەوەی لێدەر هەیە"
لەسەدا
نیمچەتەن
بنەڕەتی ExoPlayer
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index eda30eb11bf..68fa32c3c02 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -691,7 +691,6 @@
Zobrazit krátké oznámení o chybě
Připnutý komentář
Shodit přehrávač
- Změnit interval načítání (aktuálně %s). Menší hodnota může zrychlit počáteční načítání videa. Změna vyžaduje restart přehrávače
LeakCanary není dostupné
Výchozí ExoPlayer
Nastavit oznámení o právě přehrávaném streamu
diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml
index 6b16e6eae4e..3322590e858 100644
--- a/app/src/main/res/values-da/strings.xml
+++ b/app/src/main/res/values-da/strings.xml
@@ -462,7 +462,6 @@
- Download fuldført
- %s downloads fuldført
- Ændr indlæsningsintervallets størrelse (som nu er på %s). En lavere værdi kan øge videoindlæsningshastigheden. Ændringer kræver en genstart af afspiller
Den aktive spilleliste bliver udskiftet
Hvis du skifter fra en spiller til en anden, kan din kø blive erstattet
Vis metainformation
@@ -731,4 +730,4 @@
Playlists der er grået ud, indeholder allerede dette objekt.
Inaktiver permanent thumbnail
Fejlede at kopiere til udklipsholderen
-
\ No newline at end of file
+
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 36941050804..14fbbc0570d 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -682,7 +682,6 @@
\nBitte installiere einen Storage Access Framework kompatiblen Dateimanager