trtc-electron-sdk 11.4.504-beta.0 → 11.4.504-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/liteav/trtc.js +6 -10
- package/package.json +1 -1
package/liteav/trtc.js
CHANGED
|
@@ -796,18 +796,14 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
796
796
|
*/
|
|
797
797
|
bindOnStatistics() {
|
|
798
798
|
this.rtcCloud.onEvent('onStatistics', (statis) => {
|
|
799
|
-
if (statis.systemCpu >= 95) {
|
|
800
|
-
|
|
801
|
-
this.setVideoRenderFPS(5);
|
|
802
|
-
}
|
|
799
|
+
if (statis.systemCpu >= 95 && this.videoRenderFPS !== 5) {
|
|
800
|
+
this.setVideoRenderFPS(5);
|
|
803
801
|
}
|
|
804
|
-
else if (statis.systemCpu >=
|
|
805
|
-
|
|
806
|
-
this.setVideoRenderFPS(10);
|
|
807
|
-
}
|
|
802
|
+
else if (statis.systemCpu >= 80 && this.videoRenderFPS !== 10) {
|
|
803
|
+
this.setVideoRenderFPS(10);
|
|
808
804
|
}
|
|
809
|
-
else
|
|
810
|
-
if (this.videoRenderFPS
|
|
805
|
+
else {
|
|
806
|
+
if (this.videoRenderFPS < 15) {
|
|
811
807
|
this.setVideoRenderFPS(15);
|
|
812
808
|
}
|
|
813
809
|
}
|