agora-rdc-webrtc-electron

Agora Remote Desktop Control Guides

Usage no npm install needed!

<script type="module">
  import agoraRdcWebrtcElectron from 'https://cdn.skypack.dev/agora-rdc-webrtc-electron';
</script>

README

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.