Coder Social home page Coder Social logo

maxtweed / electron-media-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goga74/electron-media-manager

0.0 1.0 0.0 99 KB

Example how to use webcam and audio devices from WebRTC in Electron.js application

License: Creative Commons Zero v1.0 Universal

CSS 13.65% JavaScript 72.75% HTML 13.60%

electron-media-manager's Introduction

electron-media-manager

How to use mediadevices in WebRTC style in Electron framework.

This is a simple Electron application based on the Quick Start Guide within the Electron documentation. This demo demonstrates how developer can programmatically switches video stream from one device (embbeded webcam, for example) to another device (for example, USB webcam).

Use this app along with the Electron API Demos app for API code examples to help you get started.

This example based on WebRTC code: https://webrtc.github.io/samples/src/content/devices/input-output/ https://github.com/webrtc/samples/tree/gh-pages/src/content/devices/input-output

A basic Electron application needs just these files:

  • package.json - Points to the app's main file and lists its details and dependencies.
  • main.js - Starts the app and creates a browser window to render HTML. This is the app's main process.
  • index.html - A web page to render. This is the app's renderer process.

You can learn more about each of these components within the Quick Start Guide.

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start

To Build executable

To build executable application should use electron-packager, Git See electron-packager tutorial

build under WIndows example:

electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=IgorZamiatin --version-string.FileDescription=IgorZamiatin --version-string.ProductName="electron-media-manager"

CC0 1.0 (Public Domain)

electron-media-manager's People

Contributors

maxtweed avatar goga74 avatar

Watchers

James Cloos 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.