MultiPlayer AVChatDemo for Web, powered by NIM web sdk.
The UI is refer to https://app.yunxin.163.com/webdemo/im/login.html
Login part is just a fake login, save the account and password to Cookie, and share to the main.js for real login.
After jump to this page Main.html, var nim = NIM.getInstance
will connect the NIM server for AVChat signal Logic.
For more NIM information please refer to :
NIM init
After Login, we can strat a new Meeting, or Join a Meeting which is already existed. The function startMeeting will automatically create a new Meeting if the meeting that user input does not created before.
After Join Meeting , the following Logic you can refer to : NIM Meeting
I design four Container for Remote View, so this demo can support 5 people meeting. You can also find the Player's accid above his View.
Open this Project by vscode,run 'npm install -g live-server' in Terminal
Use vscode to open the project,npm in terminal to install :npm install -g live-server
using live-server