20 lines
1.3 KiB
Plaintext
Executable File
20 lines
1.3 KiB
Plaintext
Executable File
<!--index.wxml-->
|
|
<view id="main" class="content agora-bg flex-center-column">
|
|
<view id="video-container" class="video-container n{{totalUser}}">
|
|
<block wx:for="{{media}}" wx:key="key">
|
|
<agora-pusher wx:if="{{item.type === 0 && !item.holding}}" id="rtc-pusher" x="{{item.left}}" y="{{item.top}}" width="{{item.width}}" height="{{item.height}}" url="{{item.url}}" muted="{{muted}}" beauty="{{beauty}}" debug="{{debug}}" bindpushfailed="onPusherFailed">
|
|
</agora-pusher>
|
|
<agora-player wx:if="{{item.type === 1 && !item.holding}}" id="rtc-player-{{item.uid}}" uid="{{item.uid}}" x="{{item.left}}" y="{{item.top}}" width="{{item.width}}" height="{{item.height}}" debug="{{debug}}" url="{{item.url}}">
|
|
</agora-player>
|
|
</block>
|
|
</view>
|
|
<view class="footer flex-center-column">
|
|
<view class="toolbar">
|
|
<button plain="true" class="mic {{muted?'muted': ''}} btn" bindtap='onMute'></button>
|
|
<button plain="true" hover-class="hover" class="camera btn" bindtap='onSwitchCamera'></button>
|
|
<button plain="true" hover-class="hover" class="hangup btn" bindtap='onLeave'></button>
|
|
<button plain="true" class="makeup {{beauty === 5 ?'':'off'}} btn" bindtap='onMakeup'></button>
|
|
<button plain="true" hover-class="hover" class="log btn" bindtap='onSubmitLog'></button>
|
|
</view>
|
|
</view>
|
|
</view> |