- ReactJS
- Redux
- Django
- Agora Web Video SDK
- Agora RTM-React
- Node.js 6.9.1+
This section shows you how to prepare, build, and run the sample application.
To build and run the sample application, you must obtain an app ID:
- Create a developer account at agora.io. Once you finish the sign-up process, you are redirected to the dashboard.
- Navigate in the dashboard tree on the left to Projects > Project List.
- Copy the app ID that you obtained from the dashboard into a text file. You will use this when you launch the app.
- Edit the
src/settings.js
file. In theAGORA_APP_ID
declaration, updateYour App ID
with your app ID.
export const AGORA_APP_ID = 'Your App ID'
-
Download the Agora Web Video SDK. Unzip the downloaded SDK package and copy the
AgoraRTC-*.js
file into the sample application's/src/library/
folder. Rename the file toAgoraRTC.js
.Note: CDN can now be used to retrieve the latest SDK. You do not have to re-download SDK updates.
-
Open the terminal and navigate to your project folder.
cd path/to/project
- Use
npm
to install the dependencies:
# install dependency
npm install
npm i agora-rtc-sdk-ng
npm i agora-rtm-sdk
- Build and run the project:
Use npm run start
for a local build. View the application in your browser with the URL http://localhost:3000
# serve with hot reload at localhost:3000
npm run start
- Host Registration and Login
- Host Registration
- Host Login
- click 'Join as a Host' to enter room as a host
Use build
for a production version with minification.
# build for production with minification
npm run build
- Anonymous Messaging
- Toggle User Chat
- Change Video Configuration
- Change Volume Level
- Kick Out Unwanted Users