onreadystatechange / Agora-RTC-SDK-for-Electron

Electron wrapper around the Agora RTC SDKs for Windows/macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agora-RTC-SDK-for-Electron

The Agora-RTC-SDK-for-Electron is an open-source wrapper for Electron developers. This SDK takes advantage of Node.js C++ Addons and Agora RTC SDKs on Windows/macOS.

Developer Environment Requirements

  • Node.js 6.9.1+

  • Electron 1.8.3+

  • Agora RTC SDK Windows/macOS 2.2.1+

How to use

npm install agora-electron-sdk
const AgoraRtcEngine = require('agora-electron-sdk')

And a newly provided quickstart boilerplate: Agora-Electron-Quickstart

How to develop

Assuming that you have Node installed and can use npm in command line.

  • run npm install to install dependency

  • Usually npm will trigger building automatically, or you can build mannually by running npm run build:electron or npm run build:node, the former one is for releasing and using in electron runtime while the latter is for developing and testing in node runtime.

  • If you want to debug with xcode/visual studio, run npm run debug to generate the project file and sdk for debug env.

Notice:

  • Must create a developer account at Agora.io, when you want to use Agora APIs.

  • For macOS, please always use the latest Xcode.

  • For Windows, if Visual Studio or Electron version are not the same as in script, change the corresponding parameters in the script. Electron 1.8.3+ needs Visual Studio 2015 or above.

  • For more information about develop environment, visit node-gyp for help.

Contact Us

Contributions Welcome

We are still opmizing our project, welcome to help improve our Javascript Api Doc and test coverage, have a look at contribute code for detail.

License

The MIT License (MIT).

About

Electron wrapper around the Agora RTC SDKs for Windows/macOS


Languages

Language:C++ 92.1%Language:JavaScript 3.9%Language:Objective-C 3.3%Language:Python 0.4%Language:C 0.3%