2023-03-06 17:57:39 +08:00

53 lines
1.6 KiB
Plaintext

<view class="TUICalling {{callStatus === 'idle' ? 'hidden': 'show'}}">
<view class="TRTCCaling-container {{isGroup && config.type === 2 ?'groupConnected':''}}">
<TUI-Calling
wx:if="{{callStatus === 'calling' && !isGroup}}"
isSponsor="{{isSponsor}}"
pusher="{{pusher}}"
isGroup="{{isGroup}}"
callType="{{config.type}}"
remoteUsers="{{remoteUsers}}"
bind:callingEvent="handleCallingEvent"
></TUI-Calling>
<TUI-groupCalling
wx:if="{{callStatus === 'calling' && isGroup}}"
isSponsor="{{isSponsor}}"
pusher="{{pusher}}"
isGroup="{{isGroup}}"
callType="{{config.type}}"
allUsers="{{allUsers}}"
ownUserId="{{ownUserId}}"
bind:callingEvent="handleCallingEvent"
></TUI-groupCalling>
<TUI-Connected
wx:if="{{callStatus === 'connected' && !isGroup}}"
playerList="{{playerList}}"
isGroup="{{isGroup}}"
userList="{{userList}}"
pusher="{{pusher}}"
callType="{{config.type}}"
soundMode="{{soundMode}}"
screen="{{screen}}"
bind:connectedEvent="handleConnectedEvent"
></TUI-Connected>
<TUI-groupConnected
wx:if="{{callStatus === 'connected' && isGroup}}"
allUsers="{{allUsers}}"
playerList="{{playerList}}"
userList="{{userList}}"
isGroup="{{isGroup}}"
pusher="{{pusher}}"
callType="{{config.type}}"
soundMode="{{soundMode}}"
screen="{{screen}}"
ownUserId="{{ownUserId}}"
playerProcess="{{ playerProcess}}"
bind:connectedEvent="handleConnectedEvent"
></TUI-groupConnected>
</view>
</view>