README.zh.yaml
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Meta:
name: Web RTS Tutorial For Webpack - 1to1
lang: cn
description: |
这个开源示例项目演示了如何快速集成 Agora 视频 SDK,实现多人视频通话。
在这个示例项目中包含了以下功能:
- 加入通话和离开通话:
- 选择摄像头和麦克风设备:
Prerequisites:
- nodejs LTS
- 浏览器
QuickStart:
description:
This section shows you how to prepare, and run the sample application.
sections:
- title: 创建Agora账号并获取AppId
content: |
$_{APPID}
- title: 集成 Agora 视频 SDK
content: |
1. 在Terminal中,在您的项目根目录输入`install`命令以安装项目依赖
```shell
# install dependencies
npm install
```
2. 请到官网[agora.io](https://docs.agora.io/cn/),下载这些文件 **AgoraRTC.js**, **AgoraRTS.js**, **AgoraRTS.asm**, **AgoraRTS.wasm** 到`static`目录。
3. 输入`run dev`命令以启动Web程序
```shell
# serve with hot reload at localhost:8080
npm run dev
```
输入`npm run build`会压缩静态资源文件,可作为生产环境打包发布。
``` bash
# build for production with minification
npm run build
```
4. 你的浏览器默认会打开示例应用程序。
**注意** 如果没有自动打开,请在浏览器里手动输入URL `http://localhost:8080`。
Resources:
document: https://docs.agora.io/cn/
issue: https://github.com/AgoraIO/Basic-Video-Call/issues
License:
type: MIT