给live-pusher设置device-position属性为back好像对ios手机无效
<live-pusher
id="pushPlayer"
orientation="{{horizontal}}"
mode="{{mode}}"
device-position="{{front}}"
muted="{{muted}}"
background-mute="{{true}}"
beauty="{{beauty}}"
class="live-pusher"
autopush="{{autopush}}"
@statechange="statechange"
@netstatus="netstatusChange"
url="{{pushUrl}}"
>
|
that.pushPlayerCtx = wx.createLivePusherContext('pushPlayer');
that.pushPlayerCtx.switchCamera();
|
<live-player
hidden="{{isLivePlay}}"
id="livePlayer"
style="width: 100%;height: 100%;background: #000;"
src="{{livePlayUrl}}"
orientation="{{horizontal}}"
object-fit="{{fillCrop}}"
mode="RTC"
autoplay="{{liveAutoplay}}"
bindstatechange="liveStateChange"
binderror="liveError"
controls
bindnetstatus="liveNetStatus"
>
|