From 74c8637943347078955f51325bc6af92a35d4463 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:11:54 -0400 Subject: [PATCH] fix(YouTube - Spoof video streams): Change default client type to Android VR --- .../misc/fix/playback/SpoofVideoStreamsPatch.kt | 8 +++----- src/main/resources/addresources/values/arrays.xml | 10 +++++----- src/main/resources/addresources/values/strings.xml | 6 +++--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofVideoStreamsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofVideoStreamsPatch.kt index 828b54784..b37830762 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofVideoStreamsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofVideoStreamsPatch.kt @@ -99,17 +99,15 @@ object SpoofVideoStreamsPatch : BytecodePatch( preferences = setOf( SwitchPreference("revanced_spoof_video_streams"), ListPreference( - "revanced_spoof_video_streams_client_type", - summaryKey = null, - entriesKey = "revanced_spoof_video_streams_client_type_entries", - entryValuesKey = "revanced_spoof_video_streams_client_type_entry_values", + "revanced_spoof_video_streams_client", + summaryKey = null ), SwitchPreference( "revanced_spoof_video_streams_ios_force_avc", tag = "app.revanced.integrations.youtube.settings.preference.ForceAVCSpoofingPreference", ), - NonInteractivePreference("revanced_spoof_video_streams_about_ios"), NonInteractivePreference("revanced_spoof_video_streams_about_android_vr"), + NonInteractivePreference("revanced_spoof_video_streams_about_ios"), ), ), ) diff --git a/src/main/resources/addresources/values/arrays.xml b/src/main/resources/addresources/values/arrays.xml index cee01a7a3..32751b87b 100644 --- a/src/main/resources/addresources/values/arrays.xml +++ b/src/main/resources/addresources/values/arrays.xml @@ -1,15 +1,15 @@ - - - iOS + + Android VR + iOS - + - IOS ANDROID_VR + IOS diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index d34a38e3b..49520bf00 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -1155,16 +1155,16 @@ This is because Crowdin requires temporarily flattening this file and removing t Video streams are spoofed Video streams are not spoofed\n\nVideo playback may not work Turning off this setting may cause video playback issues. - Default client + Default client Force AVC (H.264) Video codec is AVC (H.264) Video codec is VP9 or AV1 Your device does not have VP9 hardware decoding, and this setting is always on when Client spoofing is enabled Enabling this might improve battery life and fix playback stuttering.\n\nAVC has a maximum resolution of 1080p, and video playback will use more internet data than VP9 or AV1. iOS spoofing side effects - • Movies or paid videos may not play\n• Livestreams start from the beginning + • Movies or paid videos may not play\n• Livestreams start from the beginning\n• Videos may end 1 second early\n• No opus audio codec Android VR spoofing side effects - • Audio track menu is missing + • Audio track menu is missing\n• Stable volume is not available