mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-31 10:26:42 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f883d590f1 | ||
![]() |
a25a733ef7 |
@@ -1,5 +1,5 @@
|
||||
// ==UserScript==
|
||||
// @name Better xCloud
|
||||
// @namespace https://github.com/redphx
|
||||
// @version 3.5.3
|
||||
// @version 4.0.0
|
||||
// ==/UserScript==
|
||||
|
@@ -11425,9 +11425,16 @@ function patchRtcCodecs() {
|
||||
try {
|
||||
nativeSetCodecPreferences.apply(this, [newCodecs]);
|
||||
} catch (e) {
|
||||
// Didn't work -> use default codecs
|
||||
console.log(e);
|
||||
nativeSetCodecPreferences.apply(this, [codecs]);
|
||||
try {
|
||||
// Fix Kiwi 124
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user