Quellcode durchsuchen

update:兼容小程序透传

leo vor 1 Jahr
Ursprung
Commit
5b69dce052
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 3 0
      static/screenIos/WXdraw.js
  2. 1 1
      static/webRtcYJ/WXdraw.js

+ 3 - 0
static/screenIos/WXdraw.js

@@ -67,6 +67,9 @@ function doConnectDirectives() {
       type: 'bitRate',
     };
     wsss.send(JSON.stringify(bitRate));
+
+     // 键盘透传 2 是用云机内置的
+    wsss.send(JSON.stringify({ data: { type: 2 }, type: 'InputMethod' }));
     // 进入发起询问
     var pings2 = {
       type: 'forwardMsg',

+ 1 - 1
static/webRtcYJ/WXdraw.js

@@ -66,7 +66,7 @@ function doConnectDirectives() {
       type: 'bitRate',
     };
     wsss.send(JSON.stringify(bitRate));
-    // 支持键盘透传
+    // 键盘透传 2 是用云机内置的
     wsss.send(JSON.stringify({ data: { type: 2 }, type: 'InputMethod' }));
     // // 进入发起询问
     // var pings2 = {