With the 1-on-1 Audio and Video Call feature (1v1 VoIP), users can directly initiate one-on-one video or audio calls within the Mini Program, enhancing the Mini Program service quality with extremely low development costs.
Supported from Base Library 2.20.1 onwards
Apply for Access
Currently, this feature is only available to domestic entities in the following categories for Mini Program. You must first pass the category review, and then self-serve to enable this API permission via the Mini Program Management Console: Development > Development Management > API Settings.
| Primary Category/Entity Type | Secondary Category | Application Scenarios |
|---|---|---|
| Education | Online Video Courses | One-on-one tutoring, Q&A sessions |
| Healthcare | Internet Hospitals, Public Medical Institutions, Private Medical Institutions | Online medical consultations |
| Finance | Banks, Trusts, Public Funds, Private Funds, Securities/Futures, Securities/Futures Investment Consulting, Insurance, Credit Reporting Services, New Third Board Information Services Market, Stock Information Services Market (HK/US Stocks), Consumer Finance | Video customer service for financial products, claims processing, etc. |
| Automotive | Auto Presale Services | Auto presales, etc. |
| Government Entity Accounts | / | Online consultations for government-related work, etc. |
| IT & Technology | Multi-party Communication, Audio/Video Devices, Basic Telecom Operators | Providing voice/video conferencing services; Online hardware sales and services; Providing online customer support, etc. |
| Tools | Video Customer Service | One-on-one customer service not covered by the above categories, such as enterprise after-sales one-on-one video/audio calls, etc. |
Frontend APIs
- Enable one-on-one call: wx.setEnable1v1Chat
- Join (create) one-on-one call: wx.join1v1Chat
- Exit (destroy) one-on-one call: wx.exitVoIPChat
- Update room microphone/headphone mute settings: wx.updateVoIPChatMuteConfig
- Monitor room member changes: wx.onVoIPChatMembersChanged
- Monitor room member call status changes: wx.onVoIPChatSpeakersChanged
- Monitor call interruptions: wx.onVoIPChatInterrupted
- Monitor real-time voice call member video status changes: wx.onVoIPVideoMembersChanged
Calling Flow
- Use the wx.setEnable1v1Chat API to set the user's listening status
enabletotrue. This setting is only valid within the current Mini Program lifecycle and must be reconfigured after every cold start of Mini Program. - Use the wx.join1v1Chat API to initiate a call by passing the caller information
callerand the listener informationlistener. Both the listener and the caller must be within Mini Program.
Billing
WeChat provides each Mini Program with 1,000 minutes of free call duration per calendar month. One minute of voice call deducts 1 minute of free call duration, while one minute of video call deducts 15 minutes of free duration. Any excess usage is subject to additional charges. To claim free duration or purchase a plan package, please visit the WeChat Service Marketplace.