ソースを参照

update:兼容小程序透传

leo 1 年間 前
コミット
5b69dce052
共有2 個のファイルを変更した4 個の追加1 個の削除を含む
  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 = {