石文娟 acdcece301 Update README.md 5 years ago
..
public 4398348bee [vue demo] 初始化 6 years ago
src dc1013064c [vue demo] - 检测浏览器是否支持自动播放 5 years ago
.browserslistrc 4398348bee [vue demo] 初始化 6 years ago
.editorconfig 4398348bee [vue demo] 初始化 6 years ago
.eslintignore c3292c0b5a [vue demo] - 使用 lib 下的 sdk 版本 6 years ago
.eslintrc.js c3292c0b5a [vue demo] - 使用 lib 下的 sdk 版本 6 years ago
.gitignore 4398348bee [vue demo] 初始化 6 years ago
README.md acdcece301 Update README.md 5 years ago
babel.config.js 4398348bee [vue demo] 初始化 6 years ago
package.json dc1013064c [vue demo] - 检测浏览器是否支持自动播放 5 years ago

README.md

URTC-demo(Vue 版本)

运行步骤

  1. 添加配置

src/config 目录创建 index.js 文件,并配置 AppId 和 AppKey,示例代码:

const config = {
  AppId: 'urtc-xxxxxxxx',
  AppKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}

export default config;

注:

  1. AppId 和 AppKey 可从 URTC 产品中获取
  2. AppKey 不可暴露于公网,建议生产环境时,由后端进行保存并由前端调 API 获取
  1. 安装 npm 依赖包
npm install
  1. 执行运行命令
npm start
  1. 打开页面

浏览器打开 http://localhost:8080