Procházet zdrojové kódy

update:修改fps协议帧数

leo před 2 roky
rodič
revize
52d1fa2a44
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      static/webRtcYJ/helper.js
  2. 1 1
      static/webRtcYJ/rtcEngine.min.js

+ 1 - 1
static/webRtcYJ/helper.js

@@ -276,7 +276,7 @@ function RequestIFrame() {
 // 设置fps
 function setFps(frameRate) {
   let sn = 'RK3923C1201900139';
-  let jsonObj = { type: 5, data: { frame_rate: 20 } };
+  let jsonObj = { type: 5, data: { frame_rate: 25 } };
   let jsonStr = JSON.stringify(jsonObj);
   let outPut = new TextEncoder('utf-8').encode(jsonStr);
   return makeFrameExtend(sn, 0x0D, outPut);

+ 1 - 1
static/webRtcYJ/rtcEngine.min.js

@@ -8971,7 +8971,7 @@
 			let sn = "RK3923C1201900139";
 			let verifyBuffer = VerifyCode(sn, this.token);
 			this.ws.send(verifyBuffer);
-			let fps = setFps(20)
+			let fps = setFps(25)
 			this.ws.send(fps)
 			this.heartBeatFlag = setInterval(this.heartBeat, 2000);
 			heartBeatFlag  = this.heartBeatFlag