Giter VIP home page Giter VIP logo

urtc's Introduction

URTC-demo(Vue 版本)

运行步骤

  1. 添加配置

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

const config = {
  AppId: '',
  AppKey: ''
}

export default config;

注:

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

在本地demo目录下,执行以下操作:

npm install
  1. 执行运行命令
npm start
  1. 打开页面

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

注意:由于受浏览器安全策略的限制,在访问 WebRTC 服务时,仅支持通过 http 协议访问本地 localhost 及 127.0.0.1 的服务,或通过 https 协议访问部署了服务的站点。故除了在本地进行开发测试时可以使用 http 协议以外,将服务部署至服务器时,请务必部署在支持了 https 协议的站点上。

urtc's People

Watchers

Isabella 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.