当前位置:网站首页>Add other view components to the audio and video components of the applet
Add other view components to the audio and video components of the applet
2022-06-23 02:43:00 【A good man】
explain
Because the audio and video components live-pusher and live-player The default level is higher , You can't display other components when you add them . But it can be added by absolute positioning .
design sketch
Added view Related logic
wxml file
<view class="fold" wx:if="{{!isUserListShow}}" bindtap="_handFoldClick">
<image src="../../../static/images/fold.png" class="fold-img"></image>
</view>
<view wx:else class="unfold">
<image src="../../../static/images/unfold.png" class="fold-img" bindtap="_handFoldClick"></image>
<view class="member-list">
<view> Member list :</view>
<view>
<view wx:if="{{playerList.length}}">
<view wx:for="{{playerList}}" wx:key="streamID">
<view>{{item.userID}}</view>
</view>
</view>
<view>
{{_rtcConfig.userID}}
</view>
</view>
</view>
<view>
</view>
</view>wxss The style file
.fold {
position: absolute;
top: 50vh;
right: 10px;
z-index: 3;
}
.unfold {
position: absolute;
top: 50vh;
right: 10px;
z-index: 3;
display: flex;
flex-direction: row;
}
.unfold .member-list {
background-color: rgba(48, 40, 40, 0.7);
width: 160px;
display: flex;
flex-direction: column;
color: honeydew;
}
.fold-img {
height: 32px;
width: 32px;
}js file
_handFoldClick() {
this.setData({
isUserListShow: !this.data.isUserListShow
})
},The above is to add other audio and video components view Related logic of , Mainly view Absolute positioning is required .
边栏推荐
- Precision loss problem
- Phpexcel export with picture Excel
- Problem thinking and analysis process
- Xgboost Guide
- There is no WM data in the primary commodity master data store view of SAP retail
- Information theory and coding
- WM view of commodity master data in SAP retail preliminary level
- Three ways to get class
- How does the easyplayer streaming video player set up tiling?
- Unity official case nightmare shooter development summary < I > realization of the role's attack function
猜你喜欢

For Xiaobai who just learned to crawl, you can understand it after reading it

Evolution history of mobile communication

Reptile lesson 1

2021-11-11

Interviewer: with the for loop, why do you need foreach??

Docker installs mysql5.7 and mounts the configuration file

Quick sorting C language code + auxiliary diagram + Notes

Interviewer: what is the difference between SSH and SSM frameworks? How to choose??

5g core network and core network evolution

Xgboost principle
随机推荐
Markdown - enter a score (typora, latex)
what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
Deep scan log4j2 vulnerability using codesec code audit platform
OVS port traffic statistics practice
5g access network and base station evolution
Salesforce fileUpload (I) how to configure the file upload function
Circuit analysis (circuit principle)
Easygbs adds websocket message push, which can quickly locate video playback faults
Application and challenge of ten billion level map data in Kwai security intelligence
Performance testing -- Interpretation and practice of 16 enterprise level project framework
Vulnhub DC-5
Deep learning environment configuration (I) installation of CUDA and cudnn
Reptile lesson 1
Xgboost Guide
Mongodb aggregate query implements multi table associated query, type conversion, and returns specified parameters.
What is a smart farm?
The commercial s2b2b e-commerce platform of aquatic industry improves the competitiveness of enterprises and creates a strong engine for industrial development
Interviewer: why does TCP shake hands three times and break up four times? Most people can't answer!
Why do I use index, query or slow?
February 6, 2022: Arithmetic Sequence Division II - subsequence. Give you an integer array n