GithubHelp home page GithubHelp logo

smoking / 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 148.46 MB

Electron wrapper around the Agora RTC SDKs for Windows/macOS

C++ 83.92% C 0.24% Python 1.43% JavaScript 4.95% Shell 0.02% CSS 0.13% TypeScript 9.27% Batchfile 0.04%

electron-sdk's Introduction

Mac Build Status Windows Build Status Npm Package MIT License

其他语言版本: 简体中文


Agora RTC Electron SDK

Agora RTC Electron SDK uses Agora RTC SDK (windows & macos) as NodeJS C++ addon for rapid RTC application development
Explore the docs »

View Demo · Report Bug · Plugins 🆕

Table of Contents

Getting Started

Installation

Recommend to install through npm:

# install newest sdk and download prebuilt binary file automatically
npm install agora-electron-sdk

Usually you have to specify electron version of your application and whether to download prebuilt c++ addon or do node-gyp building locally by configuration in package.json:

// package.json
{
...
  "agora_electron": {
    "electron_version": "5.0.8",
    "prebuilt": true
  }
...
}

For more detail of configuration, visit wiki.

Usage

import AgoraRtcEngine from 'agora-electron-sdk'

const rtcEngine = new AgoraRtcEngine();
rtcEngine.initialize('<your agora app id>');

To obtain Agora APP ID, you need to first create an account at Agora.io. Then, you can create a new project and obtain the APP ID.

When using without electron-webpack

When using directly within a web electron project with custom webpack configuration, you may see errors when compiling. It's because you have not properly configured loader for node addon. A convenient way to skip the compile process is to set externals property of your webpack config to {"agora-electron-sdk": "commonjs2 agora-electron-sdk"}

Resources

Plugins

In newest version we have supported plugins for customize videoFrame and audioFrame data. In other words, you can integrate cool features like video filter, face recognition with your own plugins in C++.

We have already implement an official plugin for video filter based on FaceUnity:

For more detail about how plugins work and how to write your own plugins, visit wiki.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature)
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

electron-sdk's People

Contributors

alex0367 avatar dependabot[bot] avatar guohai avatar jonassu avatar kelzr avatar lemon-chen avatar matrixbirds avatar menthays avatar plutoless avatar renovate-bot avatar renovate[bot] avatar rolfrando avatar sbd021 avatar soooooot avatar tomyail avatar williamdxz avatar zhangtao1104 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.