mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f883d590f1 | ||
![]() |
a25a733ef7 |
@@ -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==
|
||||||
|
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user