# Duo Audio Video Dialogue
Audio and video calling via two persons (1 v1) VoIP (Voice over Internet Protocol), which can be used directly in the mini application to improve the quality of service.
From the base library 2.20.1 Start support
# Application for opening
It is only open for the Mini programs of the following categories of domestic subjects, which need to pass the category review first, and then in the Mini Program management background.Development-Development management-Interface SettingsThis interface permission is self-enabled in.
First class category/Subject type | Secondary category | Application scenarios |
---|---|---|
education | Online Video Courses | One-on-one counseling, answering questions |
Medical care | Internet hospitals, public medical institutions, private medical institutions | Online consultation |
Finance | Banks, trusts, public funds, private funds, securities/Futures, securities/Futures Investment Consulting, Insurance, Credit Information Services, New Third Board Information Services Market, Stock Information Services/US Stocks), Consumer Finance | Financial products video customer service claims |
automobile | Car Pre-sale Services | Car pre-sale, etc. |
Government Principal Account | / | Government related work online consultation |
IT Technology | Multi-party communication, audio and video equipment, basic telecom operators | Provide Voice Conferencing/Video conferencing and other servicesHardware online sales and serviceProvide online customer service and other services |
tool | Video Customer Service | One-on-one customer service services that do not involve the above types of content, such as one-on-one video after sales/Audio calls, etc. |
# Front End Interface
- Start a two-person call:wx.setEnable1v1Chat
- Join (create) a two-person call:wx.join1v1Chat
- Exit (destroy) two-person call:wx.exitVoIPChat
- Update Room Microphone/Headset Mute Settings:wx.updateVoIPChatMuteConfig
- Monitoring Room Member Changes:wx.onVoIPChatMembersChanged
- Monitor the change of state of the members of the room:wx.onVoIPChatSpeakersChanged
- Monitor Call Interruption:wx.onVoIPChatInterrupted
- Monitor the change of state of real-time voice communication members:wx.onVoIPVideoMembersChanged
# Call process
- adopt wx.setEnable1v1Chat Interface changes the user's receiving state
enable
Set totrue
, this setting is only valid during the life cycle of the Mini Program, and the Mini Program needs to be reset after each cold start. - adopt wx.join1v1Chat Interface Incoming Caller Information
caller
Information with Recipientlistener
To initiate a call, both the receiver and the caller need to be in the Mini Program.
# Billing
WeChat provides 1,000 minutes of free calls per month for a single Mini Program, 1 minute of voice calls minus 1 minute of free calls, and 1 minute of video calls minus 15 minutes of free calls. The excess is charged separately. Free time to receive and package purchase need to go to[WeChat Service Market](https://fuwu.weixin.qq .com /service/detail/00048c0090477065ad6b475ee56415 )For operation.