This example demonstrates how you can embed Twilio Video in Electron and enable screen sharing.
It is based on Twilio Video Quickstarty, Electron Quick Start Guide and Electron's desktopCapturer
Create a configuration file for your application:
cp .env.template .env
Edit .env
with the configuration parameters:
- Account SID: Your primary Twilio account identifier - find this in the console here.
- API Key: Used to authenticate - generate one here.
- API Secret: Used to authenticate - just like the above, you'll get one here.
Next, we need to install our dependencies from npm:
npm install
Now we should be all set! Run the application:
npm start
Electron and a web version will be availablet at http://localhost:3000 will start