agora-rdc-webrtc-electron
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Agora Remote Desktop Control Guides

Prerequisites

  1. Getting appId & certificate issued by agora, please read this docs
  2. Please make sure Node.js 10+ has been installed.

NOTICE

agora-rdc-webrtc-electron currently is only support electron >= 7.0.0

Quick Start

  1. Check our demos.

Starting in your project.

  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:

      $ npm install agora-rtc-sdk-ng --save
      $ yarn add agora-rtc-sdk-ng
    2. install Agora Remote Desktop Control SDK by npm or yarn:

      $ npm install agora-rdc-webrtc-electron --save
      $ yarn add agora-rdc-webrtc-electron
  2. Build your remote desktop control app. See api reference

NOTICE

  1. Cause electron's limitation, please in your main process register handlers.

    import registerHandlers from 'agora-rdc-webrtc-electron/lib/electron/registerHandlers';
    
    registerHandlers();
  2. You must have to add blow code in your webPreference, eg:

    import { BrowserWindow } from 'electron';
    
    mainWindow = new BrowserWindow({
       //...
       webPreferences: {
          webSecurity: false,
          nodeIntegration: true,
          enableRemoteModule: true,
          contextIsolation: false,
       },
    });

    if not our sdk can not communicating with electron's main process.

Package Sidebar

Install

npm i agora-rdc-webrtc-electron

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

19.9 kB

Total Files

10

Last publish

Collaborators

  • agorabuilder
  • agora.io