Giter Club home page Giter Club logo

vidyo.io-connector-electron's Introduction

vidyo.io-connector-electron

Run VidyoConnector web app on Windows or macOS PC using Electron.

Follow these instructions to download corresponding developer package(s) from vidyo.io, install tools for building and running electron with add-on, then run the vidyo.io-connector-electron app.

Prerequisites

Create a directory for the Electron sample (e.g. electronsample). Download the Vidyo Client SDK for macOS and/or Windows. We need the libraries and include files from these packages to build Electron add-on. Extract the content of the package(s) into the new directory.

macOS SDK: https://static.vidyo.io/latest/package/VidyoClient-OSXSDK.zip
Windows SDK (Visual Studio 2017): https://static.vidyo.io/latest/package/VidyoClient-WinVS2017SDK.zip

$ ls -l electronsample
total 32
drwxr-xr-x@ 7 ...   238 Jul 27 17:58 VidyoClient-OSXSDK
drwxr-xr-x@ 7 ...   238 Jul 27 17:31 VidyoClient-WinVS2017SDK

Installing

Download sample electron add-on source code to the same directory.

$ ls -l electronsample
total 32
-rw-r--r--  1 ...  1474 Jun 16 13:12 VidyoAddon.cc
drwxr-xr-x@ 7 ...   238 Jul 27 17:58 VidyoClient-OSXSDK
drwxr-xr-x@ 7 ...   238 Jul 27 17:31 VidyoClient-WinVS2017SDK
-rw-r--r--  1 ...  1822 Aug 11 17:31 binding.gyp
-rw-r--r--  1 ...  1999 Aug 17 16:54 main.js
-rw-r--r--  1 ...   366 Jun 16 13:13 package.json

Install electron and node-gyp:

npm install [email protected]
npm install -g node-gyp

Build and Run

Set environment variables

For Mac:

export VIDYO_CLIENT_INCL_DIR=$PWD/VidyoClient-OSXSDK/include
export VIDYO_CLIENT_LIB_DIR=$PWD/VidyoClient-OSXSDK/lib/macos

For Windows:

set VIDYO_CLIENT_INCL_DIR=%cd%\VidyoClient-WinVS2017SDK\include
set VIDYO_CLIENT_LIB_DIR=%cd%\VidyoClient-WinVS2017SDK\lib\windows\x64\Release

Build Vidyo Client Electron add-on

For Mac:

node-gyp rebuild --target=2.0.4 --arch=x64 --dist-url=https://atom.io/download/electron

For Windows:

node-gyp rebuild --target=2.0.4 --arch=x64 --dist-url=https://atom.io/download/electron -msvs_version=2017

Run the App

npm start

Note

Replace 2.0.4 with desired electron version number as needed.

Known Issues

Windows 10 update 1709 introduced an issue which prevents video from rendering properly. The workaround is to upgrade to version 1.8.3 or later of Electron and to disable hardware acceleration, which can be done as follows in main.js:

app.disableHardwareAcceleration();

vidyo.io-connector-electron's People

Contributors

chenmengvidyo avatar oleksandr-semeniuk-io 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.