2 Commits 35fc4332ac ... 202767fc56

Autor SHA1 Mensaje Fecha
  yindan 202767fc56 Merge remote-tracking branch 'origin/master' hace 2 años
  yindan 9f1b69351e 直播偶尔黑屏问题修复 hace 2 años
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      pages/live/live.js

+ 4 - 2
pages/live/live.js

@@ -80,8 +80,10 @@ Page({
             console.log('群组ID: ', groupId);
             log.info('onload 设置的群组ID: ', groupId);
             this.initLive(this);
-            // 为了防止直播画面不显示 ↓
-            setTimeout(() => EduTRTC.getInstance().getSDK().getPusherInstance().start(), 800)
+            wx.nextTick(() => {
+                // 为了防止直播画面不显示 ↓
+                setTimeout(() => EduTRTC.getInstance().getSDK().getPusherInstance().start(), 800)
+            });
         });
         
         wx.setNavigationBarTitle({title})