mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Fix Kiwi 124
This commit is contained in:
parent
97f2ae0df9
commit
a25a733ef7
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user