English | 中文
This is a web based remote control demo, built on AgoraRTCSDK and AgoraRTMSDK.
This demo has 2 parts:
- The desktop app based on `Electron`
- The website app based on `ReactJS`
The desktop app is the controlled end, which will publish its screen-sharing stream and execute control signals from the website app. The website app is the controller end, which will subscribe the remote screen-sharing sharing and sends control signals based on captured mouse/keyboard events.
When using, you need to open the desktop app first and click As the controlled device. After the connection is established, the app will show your current channel and password. Then open the website app on another device and enter the current channel and password.
This demo only supports one to one remote control
- wrc-desktop and wrc-website are two different projects and need to be built respectively.
- you will need to manually update your APPID into the code before building the code.
- edit
./src/constant.ts, update theAPPID
# install dependencies
yarn
# run website app in localhost (development mode)
yarn start
# build website app (production mode with minification)
yarn buildThe build output can be found in the build folder.
- Edit
./src/renderer/constant.ts, update theAPPID. If you need, update theWRC_WEBSITE. This variable will be used to open the online website app
# install dependencies
yarn
# run desktop app in development mode
yarn start
# build and pack desktop app (production mode with minification)
yarn makebecause of a bug from
electron-forge,you must have runyarn startat least once before runningyarn make
- For potential issues, take a look at our FAQ first
- Dive into Agora SDK Samples to see more tutorials
- Take a look at Agora Use Case for more complicated real use case
- Repositories managed by developer communities can be found at Agora Community
- You can find full API documentation at Document Center
- If you encounter problems during integration, you can ask question in Stack Overflow
- You can file bugs about this sample at issue
The MIT License (MIT)