Giter Site home page Giter Site logo

weixiaoshiaishang / electron-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agoraio-extensions/electron-sdk

0.0 1.0 0.0 63.13 MB

Electron wrapper around the Agora RTC SDKs for Windows/macOS

JavaScript 3.71% C++ 82.83% C 0.20% Python 0.38% Shell 0.01% Batchfile 0.01% CSS 0.11% Objective-C 8.90% TypeScript 3.85%

electron-sdk's Introduction

Agora-RTC-SDK-for-Electron npm packageMac Build StatusWindows Build status

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.

其他语言版本: 简体中文

Quick Start

Attention to Changelog for newest information

You can directly install the sdk through npm:

# install newest sdk and we will download prebuilt binary file for you
npm install agora-electron-sdk
import AgoraRtcEngine from 'agora-electron-sdk'

Switch prebuilt addon version in .npmrc (default to use 1.8.3)

# range(1.8.3, <3.0.0) will download a prebuilt addon built with electron 1.8.3
AGORA_ELECTRON_DEPENDENT=2.0.0
# or
# range(>=3.0.0) will download a prebuilt addon built with electron 3.0.6
AGORA_ELECTRON_DEPENDENT=3.0.6
# or
# range(= 4.0.0) will download a prebuilt addon built with electron 4.0.0
AGORA_ELECTRON_DEPENDENT=4.0.0

Resources

Prerequisites

  • Node.js 6.9.1+

  • Electron 1.8.3+

How to develop

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

  • Run npm install to install dependency

  • Usually it will trigger npm run download, or you can run it manually.

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

Find more scripts in package.json

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. And you have to install a 32-bit electron by npm install -D --arch=ia32 electron

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

Contributions Welcome

We are still opmizing our project, welcome for pr and issules.

License

The MIT License (MIT).

electron-sdk's People

Contributors

alex0367 avatar guohai avatar jonassu avatar menthays avatar plutoless avatar rolfrando avatar sbd021 avatar tomyail avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.