From 54ba86b8ecfbe66ac8e970e32491a26f6bee56e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliberk=20Sand=C4=B1k=C3=A7=C4=B1?= Date: Sun, 1 Dec 2024 16:47:43 +0300 Subject: [PATCH] feat: add 2.5x & 3x speed in pip mode --- .../main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java b/app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java index 73c4ef35d..8f94fad5d 100644 --- a/app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java +++ b/app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java @@ -103,7 +103,9 @@ public abstract class VideoPlayerUi extends PlayerUi implements SeekBar.OnSeekBa public static final int SEEK_OVERLAY_DURATION = 450; // 450 millis // other constants (TODO remove playback speeds and use normal menu for popup, too) - private static final float[] PLAYBACK_SPEEDS = {0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 1.75f, 2.0f}; + private static final float[] PLAYBACK_SPEEDS = { + 0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 1.75f, 2.0f, 2.5f, 3.0f + }; private enum PlayButtonAction { PLAY, PAUSE, REPLAY