live-pusher 横屏情况下预览90度颠倒?

小程序 文章 2021-12-16 16:40 10 0 全屏看文

live-pusher 横屏情况下预览90度颠倒?Live-pusher preview 90 degrees upside down in landscape mode?

live-pusher 横屏情况下预览90度颠倒?

live-pusher 横屏情况下预览90度颠倒


不是所有手机都出现 我们公司的 几个ios 14 系统 和15 系统出现了问题 不仅是横屏模式 页面中有 player/live-player 使用 requestFullScreen 方法后横屏也同样出现问题 更改 orientation 值为 horizontal 后左右颠倒变成上下颠倒 使用 start方法开始推流后会自动变回正常方向

录了视频 :

http://1301228149.vod2.myqcloud.com/d56bb5a1vodcq1301228149/5099e8a0387702292961897047/JRgwlQAoaAIA.mp4

wxml

<live-pusher style="width:100vw; height: 100vh;" id="camera-push" url="{{url}}"></live-pusher>


json

{  "backgroundColor""#000",  "backgroundTextStyle""light",  "pageOrientation""landscape",  "usingComponents": {}}


js

  data: {    url'rtmp://aaa',    cameraContextnull  },  onLoad() {  },  onShow() {    this.preview()  },  previewfunction () {    let context = wx.createLivePusherContext('camera-push')    context.startPreview()  },})




Preview 90 degree reversal in live pusher horizontal screen not all mobile phones have problems with several IOS 14 and 15 systems of our company. Not only is there a player / live player in the horizontal screen mode page. After using the requestfullscreen method, the horizontal screen also has problems. Change the orientation value to horizontal, turn left and right upside down, and start with the start method After streaming, it will automatically change back to the normal direction and record the video: http://1301228149.vod2.myqcloud.com/d56bb5a1vodcq1301228149/5099e8a0387702292961897047/JRgwlQAoaAIA.mp4 wxml json {  "backgroundColor": "#000",  "backgroundTextStyle": "light",  "pageOrientation": "landscape",  "usingComponents": {}} js   data: {    url: ' rtmp://aaa ',    cameraContext: null  },  onLoad() {  },  onShow() {    this.preview()  },  preview: function () {    let context = wx.createLivePusherContext('camera-push')    context.startPreview()  },})

回答:

TIAN LU:

+1

Daniel大东:

mark

永不退缩:

up

羽:顶~~~~~

-EOF-