Agora Remote Desktop Control Guides
npm install agora-rdc-webrtc-electronAgora Remote Desktop Control Guides
1. Getting appId & certificate issued by agora, please read this docs
2. Please make sure Node.js 10+ has been installed.
#### NOTICEagora-rdc-webrtc-electron currently is only support electron >= 7.0.0
1. Check our demos.
1. Installation, Agora Remote Desktop Control depends on Agora RTC SDK (web), so you need install it first.
1. install agora-rtc-sdk-ng by npm or yarn:
``sh`
$ npm install agora-rtc-sdk-ng --save
$ yarn add agora-rtc-sdk-ng
2. install Agora Remote Desktop Control SDK by npm or yarn:
`sh`
$ npm install agora-rdc-webrtc-electron --save
$ yarn add agora-rdc-webrtc-electron
2. Build your remote desktop control app. See api reference
typescript
import registerHandlers from 'agora-rdc-webrtc-electron/lib/electron/registerHandlers'; registerHandlers();
`2. You must have to add blow code in your webPreference, eg:
`typescript
import { BrowserWindow } from 'electron'; mainWindow = new BrowserWindow({
//...
webPreferences: {
webSecurity: false,
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false,
},
});
``