Skip to content

Commit

Permalink
feat(YouTube/Spoof client): allow forcing AVC codec with iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Aug 28, 2024
1 parent d6739ef commit 4dd7255
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,13 @@ Limitation: Feed videos will play for less than 1 minute before encountering pla
<string name="revanced_spoof_client_summary_on">Client is spoofed.</string>
<string name="revanced_spoof_client_summary_off">"Client is not spoofed. Video playback may not work."</string>
<string name="revanced_spoof_client_user_dialog_message">Turning off this setting may cause video playback issues.</string>
<string name="revanced_spoof_client_type_title">Spoof client type</string>
<string name="revanced_spoof_client_ios_force_avc_title">Force iOS AVC (H.264)</string>
<string name="revanced_spoof_client_ios_force_avc_summary_on">iOS video codec is AVC (H.264).</string>
<string name="revanced_spoof_client_ios_force_avc_summary_off">iOS video codec is AVC (H.264), VP9, or AV1.</string>
<string name="revanced_spoof_client_ios_force_avc_user_dialog_message">"Enabling this might improve battery life and fix playback stuttering.

AVC (H.264) has a maximum resolution of 1080p, and video playback will use more internet data than VP9 or AV1."</string>
<string name="revanced_spoof_client_stats_for_nerds_title">Show in Stats for nerds</string>
<string name="revanced_spoof_client_stats_for_nerds_summary_on">Spoofed client is shown in Stats for nerds.</string>
<string name="revanced_spoof_client_stats_for_nerds_summary_off">Spoofed client is hidden in Stats for nerds.</string>
Expand All @@ -1626,12 +1633,12 @@ Limitation: Feed videos will play for less than 1 minute before encountering pla
<string name="revanced_spoof_client_use_ios_legacy_summary">"Spoof client to iOS.

Side effects include:
• HDR video is supported only on AV1 codec.
• HDR is supported only with AV1 codec.
• Watch time is not saved in watch history on brand account."</string>
<string name="revanced_spoof_client_use_ios_summary">"Spoof client to iOS.

Side effects include:
• HDR video is supported only on AV1 codec.
• HDR is supported only with AV1 codec.
• Watch history does not work with a brand account."</string>
<string name="revanced_spoof_client_use_android_testsuite_title">Android Testsuite</string>
<string name="revanced_spoof_client_use_android_testsuite_summary">"Spoof client to Android Testsuite.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@
<!-- SETTINGS: SPOOF_CLIENT
<PreferenceScreen android:title="@string/revanced_preference_screen_spoof_client_title" android:key="revanced_preference_screen_spoof_client" android:summary="@string/revanced_preference_screen_spoof_client_summary">
<SwitchPreference android:title="@string/revanced_spoof_client_title" android:key="revanced_spoof_client" android:summaryOn="@string/revanced_spoof_client_summary_on" android:summaryOff="@string/revanced_spoof_client_summary_off" />
<SwitchPreference android:title="@string/revanced_spoof_client_ios_force_avc_title" android:key="revanced_spoof_client_ios_force_avc" android:summaryOn="@string/revanced_spoof_client_ios_force_avc_summary_on" android:summaryOff="@string/revanced_spoof_client_ios_force_avc_summary_off" />
<SwitchPreference android:title="@string/revanced_spoof_client_stats_for_nerds_title" android:key="revanced_spoof_client_stats_for_nerds" android:summaryOn="@string/revanced_spoof_client_stats_for_nerds_summary_on" android:summaryOff="@string/revanced_spoof_client_stats_for_nerds_summary_off" />
<PreferenceCategory android:title="@string/revanced_preference_category_spoof_client_options" android:layout="@layout/revanced_settings_preferences_category" />
Expand Down

0 comments on commit 4dd7255

Please sign in to comment.