浏览代码

5.9.5需求: 华为荣耀渠道包应用隐藏,进入其他客户端推流应用全部展示包含(IOS,H5,小程序,PC,安卓其他包);

t_finder 21 小时之前
父节点
当前提交
c8e56558ba
共有 2 个文件被更改,包括 18 次插入0 次删除
  1. 7 0
      pages/rtcEngine/rtc.vue
  2. 11 0
      static/webRtcYJ/WXdraw.js

+ 7 - 0
pages/rtcEngine/rtc.vue

@@ -657,6 +657,13 @@ export default {
           // 重置重连次数
           this.doConnectDirectivesRequestNum = 1;
 
+          // v5.9.5需求: 华为荣耀渠道包应用隐藏,进入其他客户端推流应用全部展示包含(IOS,H5,小程序,PC,安卓其他包); 
+          // H5发送指令显示所有应用
+          this.sendWsCommand({ type: 'hideApp', data: {
+            action: 2, // 1: 隐藏 2: 显示
+          } });
+
+
           // 设置定时器 每3秒发送一次心跳
           this.doConnectDirectivesIntervalerPing = setInterval(() => {
             if (this.doConnectDirectivesWs.readyState === 1) {

+ 11 - 0
static/webRtcYJ/WXdraw.js

@@ -140,6 +140,17 @@ function doConnectDirectives() {
         type: 'getPhoneSize',
       }),
     );
+
+    // 5.9.5需求: 华为荣耀渠道包应用隐藏,进入其他客户端推流应用全部展示包含(IOS,H5,小程序,PC,安卓其他包); 
+    // H5发送指令显示所有应用
+    wsss.send(
+      JSON.stringify({
+        type: 'hideApp',
+        data: {
+          action: 2, // 1: 隐藏 2: 显示
+        }
+      }),
+    );
   };
   wsss.onerror = function (e) {
     clearInterval(intervalerPing)