Pārlūkot izejas kodu

bugfix: switch camera

able99 4 gadi atpakaļ
vecāks
revīzija
54ebdc5292
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);
     },