瀏覽代碼

bugfix: switch camera

able99 4 年之前
父節點
當前提交
54ebdc5292
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);
     },