GithubHelp home page GithubHelp logo

vcs-wechat-demo's Introduction

sdk使用帮助请阅读

微信小程序-RTC-SDK
小程序RTC开发FAQ

体验步骤

  • 新建miniprogram/sdk目录,并将sdk文件放置到目录下
  • 新建miniprogram/sdk_config.js文件,填写内容
module.exports = {
    appID: "分配给你的appid",
    appKey: "分配给你的appkey",
    serverPrefix: "服务地址,如 https://vcs.anyconf.cn:9001/vcs",
    dftUserName: "方便测试的默认登录用户名,不填则每次都要手动输入",
    dftPassword: "方便测试的默认登录密码,不填则每次都要手动输入",
    dftRoomNo: "方便测试的默认房间号,不填则每次都要手动输入"
};
  • 根目录下运行npm install,小程序开发者工具工具-构建npm
  • ☕️

typescript工程无法识别sdk的d.ts声明

ts如果不能正确识别sdk的.d.ts定义的变量类型,请在tsconfig.json中配置

"moduleResolution": "node",
"typeRoots": [
    "./typings",
    "miniprogram/sdk"
]

javascript写法

运行下typescript编译命令 tsc会生成对应js文件

vcs-wechat-demo's People

Contributors

shushenghong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.