Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

agora-rdc-webrtc-electron

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agora-rdc-webrtc-electron

Agora Remote Desktop Control Guides

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
7
-61.11%
Maintainers
3
Weekly downloads
 
Created
Source

Agora Remote Desktop Control Guides

Prerequisites

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

NOTICE

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

Quick Start

Starting in your project.

  • Installation, Agora Remote Desktop Control depends on Agora RTC SDK (web), so you need install it first.

    • install agora-rtc-sdk-ng by npm or yarn:

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

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

NOTICE

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

    import registerHandlers from 'agora-rdc-webrtc-electron/lib/electron/registerHandlers';
    
    registerHandlers();
    
  • 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.

Keywords

remote desktop control

FAQs

Package last updated on 04 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts