diff --git a/YoutubeConfig.json b/YoutubeConfig.json index 332aacb0653b2838f2639309a10c8704f3227213..a0e8f799760474bbfa84a836d771f858875be49a 100644 --- a/YoutubeConfig.json +++ b/YoutubeConfig.json @@ -8,7 +8,7 @@ "repositoryUrl": "https://futo.org", "scriptUrl": "./YoutubeScript.js", - "version": 235, + "version": 236, "iconUrl": "./youtube.png", "id": "35ae969a-a7db-11ed-afa1-0242ac120002", @@ -282,6 +282,9 @@ "changelog": { + "236": [ + "Fix Android 9 error (remove query hardware codecs)" + ], "235": [ "Fix Cipher" ], diff --git a/YoutubeScript.js b/YoutubeScript.js index 84cc8fd1651ba68f2360515311332d7f00f1b185..02dda6fcc702b915f40a465ac17ed54ea2d5d6ae 100644 --- a/YoutubeScript.js +++ b/YoutubeScript.js @@ -150,8 +150,10 @@ source.enable = (conf, settings, saveStateStr) => { config = conf ?? {}; _settings = settings ?? {}; + /*Broken on Android 9, dont re-add till then const codecs = (bridge.getHardwareCodecs) ? bridge.getHardwareCodecs() : []; log(JSON.stringify(codecs)); + */ USE_ABR_VIDEOS = !!_settings.useUMP && (bridge.buildSpecVersion ?? 1) > 1; log("ABR Enabled: " + USE_ABR_VIDEOS); diff --git a/YoutubeUnstableConfig.json b/YoutubeUnstableConfig.json index 547f60cf3a4720097e491d3935376c1b6f6089cc..615965c016cc2e4ef39160a2f2914ac331cce842 100644 --- a/YoutubeUnstableConfig.json +++ b/YoutubeUnstableConfig.json @@ -8,7 +8,7 @@ "repositoryUrl": "https://futo.org", "scriptUrl": "./YoutubeScript.js", - "version": 235, + "version": 236, "iconUrl": "./youtube.png", "id": "35ae969a-a7db-11ed-afa1-0242ac120003",