Compare commits

..

2 Commits
v3.5.3 ... main

Author SHA1 Message Date
redphx
f883d590f1 Bump version to 4.0.0 2024-04-28 18:16:18 +07:00
redphx
a25a733ef7 Fix Kiwi 124 2024-04-20 07:18:52 +07:00
2 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
// ==UserScript== // ==UserScript==
// @name Better xCloud // @name Better xCloud
// @namespace https://github.com/redphx // @namespace https://github.com/redphx
// @version 3.5.3 // @version 4.0.0
// ==/UserScript== // ==/UserScript==

View File

@@ -11425,12 +11425,19 @@ function patchRtcCodecs() {
try { try {
nativeSetCodecPreferences.apply(this, [newCodecs]); nativeSetCodecPreferences.apply(this, [newCodecs]);
} catch (e) { } catch (e) {
// Didn't work -> use default codecs try {
// Fix Kiwi 124
console.log(e); console.log(e);
newCodec.push(...RTCRtpSender.getCapabilities('video').codecs);
nativeSetCodecPreferences.apply(this, [newCodecs]);
} catch (x) {
// Didn't work -> use default codecs
console.log(x);
nativeSetCodecPreferences.apply(this, [codecs]); nativeSetCodecPreferences.apply(this, [codecs]);
} }
} }
} }
}
function setupQuickSettingsBar() { function setupQuickSettingsBar() {