8000 add enableCpuOveruseDetection configuration (#1165) · withub-com/flutter-webrtc@7617f60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7617f60

Browse files
authored
add enableCpuOveruseDetection configuration (flutter-webrtc#1165)
add enableCpuOveruseDetection configuration
1 parent 799257b commit 7617f60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/MethodCallHandlerImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,11 @@ private RTCConfiguration parseRTCConfiguration(ConstraintsMap map) {
985985
.setEnableAes128Sha1_32CryptoCipher(cryptoOptions.hasKey("enableAes128Sha1_32CryptoCipher") && cryptoOptions.getBoolean("enableAes128Sha1_32CryptoCipher"))
986986
.createCryptoOptions();
987987
}
988+
if (map.hasKey("enableCpuOveruseDetection")
989+
&& map.getType("enableCpuOveruseDetection") == ObjectType.Boolean) {
990+
final boolean v = map.getBoolean("enableCpuOveruseDetection");
991+
conf.enableCpuOveruseDetection = v;
992+
}
988993
return conf;
989994
}
990995

0 commit comments

Comments
 (0)
0