소스 검색

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);
     },