Explorar el Código

update:修改fps协议帧数

leo hace 2 años
padre
commit
52d1fa2a44
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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
 // 设置fps
 function setFps(frameRate) {
 function setFps(frameRate) {
   let sn = 'RK3923C1201900139';
   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 jsonStr = JSON.stringify(jsonObj);
   let outPut = new TextEncoder('utf-8').encode(jsonStr);
   let outPut = new TextEncoder('utf-8').encode(jsonStr);
   return makeFrameExtend(sn, 0x0D, outPut);
   return makeFrameExtend(sn, 0x0D, outPut);

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

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