123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <view class="container">
- <cover-image
- wx:if="{{isLive && !isRotate}}"
- class="full-icon"
- src="/images/ic_screen.png"
- catch:tap="changeFull"
- />
- <!-- <cover-view class="rotate" wx:if="{{hasRotate}}" bind:tap="rotate">旋转</cover-view>-->
- <view style="height:250rpx;"
- wx:if="{{playerList.length>1 || (playerList.length==1 && pusher.enableCamera)}}"></view>
- <live-reply bind:message="reply" bind:hand="hand"
- class="bottom-reply"
- user="{{user}}" groupId="{{groupId}}"
- userSig="{{userSig}}"
- showMsg="{{(type == liveSourcesEnum.GUEST && isAudText == 1) || type == liveSourcesEnum.DEFAULT }}"
- showHand="{{(type == liveSourcesEnum.DEFAULT && isStuVideo == 0 && !pusher.enableCamera )||(type == liveSourcesEnum.GUEST && isAudVideo == 1 && !pusher.enableCamera)}}"/>
- <view class="push-tool" hidden="{{!pusher.enableCamera}}">
- <view class="left" catch:tap="quitLink">
- <van-image width="35rpx" height="35rpx" fit="cover" src="/images/ic_shutdown.png"/>下麦
- </view>
- <view class="left" catch:tap="switchCamera">
- <van-image width="35rpx" height="35rpx" fit="cover" src="/images/ic_switch_camera.png"/>切换
- </view>
- </view>
- <view class="live-container {{isFull?'live-full':''}}">
- <van-empty wx:if="{{!isLive}}" image="" description="直播登录中..." class="live-empty">
- </van-empty>
- </view>
- <view class="line {{isFull?'line-full':''}}"></view>
- <view class="{{isFull?'sub-live-full':'sub-live'}}">
- <block wx:if="{{playerList.length}}">
- <block
- wx:for="{{playerList}}"
- wx:key="streamID"
- >
- <live-player
- bind:tap="handlePlayer"
- class="{{bigIndex==index?'live-container':'player'}} {{(bigIndex==index && isFull)?'live-full':''}}"
- id="{{item.id}}"
- data-index="{{index}}"
- 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}}"
- orientation="{{item.orientation}}"
- object-fit="{{item.objectFit}}"
- 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}}"
- bindstatechange="_playerStateChange"
- bindfullscreenchange="_playerFullscreenChange"
- bindnetstatus="_playerNetStatus"
- bindaudiovolumenotify="_playerAudioVolumeNotify"
- >
- <view class="backScreen" bindtap="exitRotate" wx:if="{{isRotate}}">
- <image src="/images/ic_back.png" class='full_img' />
- </view>
- </live-player>
- </block>
- </block>
- <live-pusher
- class="player {{bigIndex==-1?'live-container':''}} {{(bigIndex==-1 && isFull)?'live-full':''}} {{!pusher.enableCamera?'push-none':''}}"
- data-index="{{-1}}"
- bind:tap="handlePlayer"
- 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}}"
- 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}}"
- beauty-style="{{pusher.beautyStyle}}"
- filter="{{pusher.filter}}"
- bindstatechange="_pusherStateChangeHandler"
- bindnetstatus="_pusherNetStatusHandler"
- binderror="_pusherErrorHandler"
- bindbgmstart="_pusherBGMStartHandler"
- bindbgmprogress="_pusherBGMProgressHandler"
- bindbgmcomplete="_pusherBGMCompleteHandler"
- bindaudiovolumenotify="_pusherAudioVolumeNotify"
- />
- </view>
- </view>
|