Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
feat(YouTube - Video playback): Add Disable VP9 codec setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 authored and anddea committed Sep 16, 2024
1 parent 77daa8a commit cb38e7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package app.revanced.integrations.youtube.patches.video;

import app.revanced.integrations.youtube.settings.Settings;

@SuppressWarnings("unused")
public class VP9CodecPatch {

public static boolean disableVP9Codec() {
return !Settings.DISABLE_VP9_CODEC.get();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting SKIP_PRELOADED_BUFFER = new BooleanSetting("revanced_skip_preloaded_buffer", FALSE, true, "revanced_skip_preloaded_buffer_user_dialog_message");
public static final BooleanSetting SKIP_PRELOADED_BUFFER_TOAST = new BooleanSetting("revanced_skip_preloaded_buffer_toast", TRUE);
public static final BooleanSetting SPOOF_DEVICE_DIMENSIONS = new BooleanSetting("revanced_spoof_device_dimensions", FALSE, true);
public static final BooleanSetting DISABLE_VP9_CODEC = new BooleanSetting("revanced_disable_vp9_codec", FALSE, true);
public static final BooleanSetting REPLACE_AV1_CODEC = new BooleanSetting("revanced_replace_av1_codec", FALSE, true);
public static final BooleanSetting REJECT_AV1_CODEC = new BooleanSetting("revanced_reject_av1_codec", FALSE, true);

Expand Down

0 comments on commit cb38e7b

Please sign in to comment.