123456789101112131415161718 |
- <!-- template 1v1 -->
- <template name='1v1'>
- <view class="template-1v1">
- <view wx:for="{{streamList}}" wx:for-item="item" wx:key="index" class="view-container player-container">
- <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">
- <cover-view wx:if="{{index==0}}" wx:if="{{streamList[0].orientation=='horizontal'}}" style="position:fixed;transform:rotate(90deg);top:50%;right:-120rpx;z-index:9999999999">
- <button plain=" false" type="default" style="background-color:rgba(0,0,0,0.3);color:#fff;z-index:9999999999" bindtap="exitFullScreen">退出全屏</button>
- </cover-view>
- <cover-view wx:if="{{index==0}}" wx:if="{{streamList[0].orientation!='horizontal'}}" style="position:fixed;top:0;left:25%;z-index:9999999999">
- <button plain="false" type="default" bindtap="fullScreen" style="background-color:rgba(0,0,0,0.3);color:#fff;z-index:9999999999">全屏</button>
- </cover-view>
- </live-player>
- </view>
- <view class="view-container pusher-container {{pusher.enableCamera?'':'none'}} {{streamList.length===0? 'fullscreen':''}}">
- <live-pusher class="pusher" url="{{pusher.url}}" mode="{{pusher.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" />
- </view>
- </view>
- </template>
|