# voip-room
Start from base library version 2.11.0. Please remaining backward compatible.
Relevant api: wx.joinVoIPChat
# Functional description
Multiplayer audio and video conversations. needUser Authorization scope.camera
、scope.record
。
# Apply for Open
For the time being, it is only open for the following categories of domestic entities, which need to pass the category audit first, and then in the background of the Mini Program management.Development-Interface settingsEnable the component permission in the.
Category I/Subject type | Class II | Mini Program Content Scene |
---|---|---|
education | Online Video Lessons | Online courses, online training, lectures and other educational live broadcast |
Medical care | Internet Hospitals, Public Hospitals | Live interviews, large health talks, etc. |
Medical care | Private medical institutions | / |
Finance | Banks, trusts, funds, securities/Futures, securities, futures investment consulting, insurance, credit investigation business, NEEQ information service platform, stock information service platform (Hong Kong stocks/U.S. Stocks), Consumer Finance | Financial product video customer service claims, financial product promotion live, etc. |
automobile | Car Pre-sale Service | Pre-sale and promotion of automobiles |
Government Principal Account | / | Government related work to promote live broadcast, live leadership speech, etc. |
IT science and technology | Multi-party communication | Online meeting |
Express Industry and Post | Mailing/To receive | Video Customer Service |
When the component permissions are enabled, the developer can joinVoIPChat
On success, get the room member's openid
, passed to the voip-room
Component to display the member screen.
# Property Dxplaination
attribute | type | Default value | Required | Introductions | Minimum version | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
openid | string | yes | Enter the room user's openid | 2.11.0 | ||||||||||
mode | string | camera | yes | Dialog Window Type | 2.11.0 | |||||||||
| ||||||||||||||
device-position | string | front | yes | Camera direction, only in the mode for camera Effective when | 2.11.0 | |||||||||
| ||||||||||||||
object-fit | string | fill | yes | When the scale of the picture is not consistent with the container, the form of the | 2.29.0 | |||||||||
| ||||||||||||||
binderror | eventhandle | no | Triggered when creating a dialog window fails | 2.11.0 |
# Bug & Tip
tip
: Not supported on developer toolstip
: Please noteNative Component Usage Restrictions
# sample code
<block wx:for="{{openIdList}}" wx:key="*this">
<voip-room
openid="{{item}}"
mode="{{selfOpenId === item ? 'camera' : 'video'}} ">
</voip-room>
</block>