Procházet zdrojové kódy

bugfix: switch camera

able99 před 4 roky
rodič
revize
5afcd71c91
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      jhlive/live-wechat.vue

+ 1 - 0
jhlive/live-wechat.vue

@@ -200,6 +200,7 @@ export default {
       }
     },
     switchCarema() {
+      wx.createLivePusherContext().switchCamera();
       this.pusher.frontCamera = this.pusher.frontCamera=='front'?'back':'front';
       console.log(LOGTAG+'pusher',this.pusher);
     },