Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Web/BasicDemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@

## 配置 Demo 工程文件

1. 全局安装 node、yarn
2. 进入工程目录,修改 AppID。使用控制台获取的 AppID 覆盖 src 文件夹下 index.js 里的 appId 值
3. 进入工程目录,修改 Token。临时 Token 覆盖 src 文件下 index.js 里的 token 值
1. 全局安装 node、yarn
2. 进入工程目录,修改 AppID。使用控制台获取的 AppID 覆盖 js 文件夹下 common.js 里的 appId 值
3. 进入工程目录,修改 Token。临时 Token 覆盖 src 文件下 common.js 里的 token 值

## 运行 demo

1. 安装 yarn

```
npm install -g yarn
```
```shell
npm install -g yarn
```

2. 安装依赖

```
yarn
```
```shell
yarn
```

3. 启动项目

```
yarn start
```
```shell
yarn start
```
2 changes: 1 addition & 1 deletion Web/BasicDemo/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $('#submit').on('click', async () => {
/*
* before join a room, you should create a room,then you can join it with `engine.join(token,roomId,uid, onSuccessFunc, onFailFunc)`
*/
await rtc.join((config.token || {})[config.uid], config.roomId, config.uid);
await rtc.join((config.token || {}), config.roomId, config.uid);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change fixed the remaining bug

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

企业微信截图_11f3b8d5-f793-469d-a519-df5ac8beab62
Now it is up and running

$('#header-version').text(`${config.roomId}`);
$('#local-player').show();
$('#local-player-name').text(`${config.uid}`);
Expand Down
2 changes: 1 addition & 1 deletion Web/BasicDemo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');

module.exports = {
entry: './index.js',
entry: './js/index.js',
mode: 'development',
output: {
filename: 'bundle.js',
Expand Down