Skip to content

Sample project to add screensharing in electron app with OpenTok

Notifications You must be signed in to change notification settings

gblachonupg/electron-screenshare-opentok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

electron-screenshare-opentok

Here are my version of :

  • npm 3.10.3
  • node 6.5.0

Install

  • npm install in root
  • npm install in app
  • webpack in app

To launch the sample app : electron app in root

You should add your opentok credential in app/src/js/app.js

var OT_API_KEY = ""; var OT_SESSION_ID = ""; var OT_TOKEN = "";

The main.js just creates the electron window and starts the express server.

As you can see in the app/src/js/app.js, i use the same constraints in both my video element an in OpenTok but in the video element, I get the screen display rather than in OpenTok, i get the user's camera (default one i guess)

As you can see, i use the module rtc-screenshare (https://github.com/rtc-io/rtc-screenshare) to manage screensharing accross browser and electron.

About

Sample project to add screensharing in electron app with OpenTok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published