Explorar o código

bugfix: switch camera

able99 %!s(int64=4) %!d(string=hai) anos
pai
achega
54ebdc5292
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
     },