Feature | Supported by HTML5 |
Basic voice chat features | Yes |
Sound effect and accompaniment | Partially supported |
3D voice | No |
Range voice | No |
Room management | No |
Audio forwarding routing | No |
Custom message channel | No |
Voice messaging | No |
Speech-to-text | No |
OS/Platform | Browser/WebView | Version Requirement | Remarks |
iOS | Safari | 11.1.2 | Safari on a later version |
| Chrome | - | iOS currently doesn't support Chrome. |
| Weixin browser | - | iOS currently doesn't support the Weixin browser. |
Android | TBS (the default WebView of Weixin and Mobile QQ) | 43600 | |
| Chrome | 60+ | H.264 support is required |
macOS | Chrome | 47+ | - |
| Safari | 11+ | - |
Windows (PC) | Chrome | 52+ | - |
| 10.2 | - |
Protocol | Port |
TCP | 8687 |
UDP | 8000, 8800, 443 |
WebRTCService.min.js
into the project as demonstrated in the following code: <head><script src="../dist/WebRTCService.min.js"></script></head>
<div id="gme-audio-wrap"></div>
authBuffer
program, which can sign the authentication information for a specified SDKAppID
.signdemo
directory and modify the config.js
file: open the config.js
file, delete the default configuration, and call the appidMap
function in the place where the code is deleted (the parameters are the SDKAppid
applied for on the Tencent Cloud backend and the corresponding authentication key).const AuthBufferConfig = function () {this.appidMap = {};this.appidMap["1400089356"] = "1cfbfd2a1a03a53e";};// Replace `1400089356` with the `sdkAppid` applied for on the Tencent Cloud backend and replace `1cfbfd2a1a03a53e` with the authentication key corresponding to the `sdkAppid`
AuthKey
must correspond to your SDKAppid
.authBuffer
program resides and run the following statement to install the dependencies:npm i
node index.js
script to run the signature service.node -v
on the command line to view the version.curl
command):// Generate a `userSig`:curl "http://127.0.0.1:10005/" --data "sdkappid=1400089356&roomid=1234123&openid=1234567"
{"userSig":"AqhHE7QHLFYPfV/zfyrdRYHfuUn6eOA8g/J6GMjVy//Shr5ByJPTi8hzR2KyXMvn","errorCode":0}
この記事はお役に立ちましたか?