1v1.wxml 3.7 KB

123456789101112131415161718192021
  1. <!-- template 1v1 -->
  2. <template name='1v1'>
  3. <view class="template-1v1">
  4. <view wx:for="{{streamList}}" wx:for-item="item" wx:key="index" class="view-container player-container">
  5. <live-player class="{{item.userID=='0'|| item.userID=='share-userId'?'player':'player1'}}" id="{{item.streamID}}" data-userid="{{item.userID}}" data-streamid="{{item.streamID}}" data-streamtype="{{item.streamType}}" src="{{item.src}}" mode="RTC" autoplay="{{item.autoplay}}" mute-audio="{{item.muteAudio}}" mute-video="{{item.muteVideo}}" background-mute="{{item.enableBackgroundMute}}" min-cache="{{item.minCache}}" max-cache="{{item.maxCache}}" sound-mode="{{item.soundMode}}" enable-recv-message="{{item.enableRecvMessage}}" auto-pause-if-navigate="{{item.autoPauseIfNavigate}}" auto-pause-if-open-native="{{item.autoPauseIfOpenNative}}" debug="{{debug}}" orientation="{{item.orientation}}" bindstatechange="_playerStateChange" bindfullscreenchange="_playerFullscreenChange" bindnetstatus="_playerNetStatus" bindaudiovolumenotify="_playerAudioVolumeNotify">
  6. <cover-image wx:if="{{streamList[0].orientation=='horizontal'}}" style="position:fixed;bottom:50rpx;left:50rpx;z-index:9999999999;width:50rpx;height:50rpx" src="https://bucketnj1-1254259530.cos.ap-nanjing.myqcloud.com/icon/%E7%BB%88%E7%89%88%E9%80%80%E5%87%BA%E5%85%A8%E5%B1%8F.png" bindtap="exitFullScreen"></cover-image>
  7. <cover-image wx:if="{{streamList[0].orientation=='vertical'}}" style="position:fixed;top:420rpx;right:50rpx;z-index:9999999999;width:50rpx;height:50rpx" src="https://bucketnj1-1254259530.cos.ap-nanjing.myqcloud.com/icon/%E7%BB%88%E7%89%88%E5%85%A8%E5%B1%8F.png" bindtap="fullScreen"></cover-image>
  8. <cover-view wx:if="{{showmodal}}" class="{{streamList[0].orientation=='horizontal'?'modol1':'modol'}}">
  9. <cover-image src="../../images/lmbj.png" class="lm"></cover-image>
  10. <cover-view class="t1">老师向你发起连麦申请</cover-view>
  11. <cover-view class="t2">{{second}}秒之后自动关闭</cover-view>
  12. <cover-view class="t4" style="width:300rpx" bindtap="answer1">接听</cover-view>
  13. <cover-view class="t5" style="width:300rpx" bindtap="refuse1">关闭</cover-view>
  14. </cover-view>
  15. </live-player>
  16. </view>
  17. <view class="view-container pusher-container {{pusher.enableCamera?'':'none'}} {{streamList.length===0? 'fullscreen':''}}">
  18. <live-pusher class="pusher" url="{{pusher.url}}" mode="{{item.mode}}" autopush="{{pusher.autopush}}" enable-camera="{{pusher.enableCamera}}" enable-mic="{{pusher.enableMic}}" muted="{{!pusher.enableMic}}" enable-agc="{{pusher.enableAgc}}" enable-ans="{{pusher.enableAns}}" enable-ear-monitor="{{pusher.enableEarMonitor}}" auto-focus="{{pusher.enableAutoFocus}}" zoom="{{pusher.enableZoom}}" min-bitrate="{{pusher.minBitrate}}" max-bitrate="{{pusher.maxBitrate}}" video-width="{{pusher.videoWidth}}" video-height="{{pusher.videoHeight}}" beauty="{{pusher.beautyLevel}}" whiteness="{{pusher.whitenessLevel}}" orientation="{{pusher.videoOrientation}}" aspect="{{pusher.videoAspect}}" object-fit="contain" device-position="{{pusher.frontCamera}}" remote-mirror="{{pusher.enableRemoteMirror}}" local-mirror="{{pusher.localMirror}}" background-mute="{{pusher.enableBackgroundMute}}" audio-quality="{{pusher.audioQuality}}" audio-volume-type="{{pusher.audioVolumeType}}" audio-reverb-type="{{pusher.audioReverbType}}" waiting-image="{{pusher.waitingImage}}" debug="{{debug}}" bindstatechange="_pusherStateChangeHandler" bindnetstatus="_pusherNetStatusHandler" binderror="_pusherErrorHandler" bindbgmstart="_pusherBGMStartHandler" bindbgmprogress="_pusherBGMProgressHandler" bindbgmcomplete="_pusherBGMCompleteHandler" bindaudiovolumenotify="_pusherAudioVolumeNotify" />
  19. </view>
  20. </view>
  21. </template>