tencent cloud


Project Configuration

Last updated: 2020-11-17 17:03:15

    This document describes how to get started with the GME APIs for HTML5.

    Platforms Supported by the SDK for HTML5

    OS/Platform Browser/WebView Version Requirement Remarks
    iOS Safari 11.1.2 Please use a high version of Safari.
    Chrome - Currently, Chrome is not supported for iOS.
    WeChat Browser - Currently, WeChat Browser is not supported for iOS.
    Android TBS (the default WebView of WeChat and Mobile QQ) 43600 The default built-in browser kernel of WeChat and Mobile QQ is TBS
    Chrome 60+ H.264 support is required
    macOS Chrome 47+ -
    Safari 11+ -
    Windows (PC) Chrome 52+ -
    QQ Browser 10.2 -


    The SDK can be obtained in the following steps:

    1. Go to the Download Guide page.
    2. Locate the SDK resources for HTML5 on the page.
    3. Click Download on the page.

    Frontend Project Configuration Steps

    1. Open ports

    If you have configured a firewall for your network, be sure to open the following ports:

    Protocol Port
    TCP 8687
    UDP 8000, 8800, 443

    Import the SDK by using CDN.

    2. Import frontend library files

    Refer to the following code to import WebRTCService.min.js into the project.

        <script src="../dist/WebRTCService.min.js"></script>

    3. Add audio tag

    <div id="gme-audio-wrap"></div>

    Server-Side Deployment Steps

    The use of the GME SDK requires authentication which involves keys and is not suitable for implementation on the client. You are recommended to deploy it separately.
    If only client implementation is needed for the time being, please refer to the provided demo project.

    1. Download the program

    Download the sample authBuffer program, which can sign the authentication information for a specified SDKAppID.

    2. Configure the server-side authentication project

    Go to the 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`


    The AuthKey must correspond to your SDKAppid.

    3. Deploy the server-side authentication project

    Go to the directory where the sample authBuffer program resides and run the following statement to install the dependencies:

    npm i

    Then, execute the node index.js script to run the signature service.


    As the async syntax is used, please make sure that your node is above v8. Run node -v on the command line to view the version.

    4. Test the deployment result

    You can run the following command on the command line for test (make sure that your system has a curl command):

    // Generate a `userSig`:
    curl "" --data "sdkappid=1400089356&roomid=1234123&openid=1234567"

    After the signing program is executed, the authentication information will be returned as shown below:

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support