Coder Social home page Coder Social logo

circuit / live-cam-bot Goto Github PK

View Code? Open in Web Editor NEW
9.0 7.0 2.0 81 KB

Electron bot sending a live video stream on a conversation

License: Apache License 2.0

HTML 13.95% JavaScript 86.05%
webrtc circuit collaboration mediastream sdk api video camera getusermedia

live-cam-bot's Introduction

live-cam-bot

Electron-based Bot utilizing the setScreenshareStream API to send a video stream captured from a local camera.

This example would be suited to run on a Raspberry PI with a local camera and wifi. The PI could then be used for surveillance, local surf conditions or anything else you'd like to share.

Electron is based on node.js and Chromium and is therefore able to utilize the Circuit JS WebRTC APIs unlike a regular node.js app.

Details

  • Group conversation to stream video on is predefined and its ID set in config.json
  • Bot will start (or join) conference on given conversation and share the video stream of the local camera. If non default camera is to be used, setMediaDevices can be used to choose a video input device.
  • Bot will ensure the conference is always running

Getting Started

Run the app

This example uses async/await, so node.js version 7.6+ is required

    git clone https://github.com/circuit/live-cam-bot.git
    cd live-cam-bot
    cp config.json.template config.json
    // Edit config.json with your credentials and the conversation ID to stream on
    npm install
    npm start // or npm run dev

When running using "npm start" no window is opened. Run using "npm run dev" if you want to debug the app.

live-cam-bot's People

Contributors

dependabot[bot] avatar richardfazzio avatar rogeru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

live-cam-bot's Issues

Uncaught ReferenceError: Circuit is not defined

After including the right circuit.js, when I run the example I get the following error on the browser:

Uncaught ReferenceError: Circuit is not defined at renderer.js:8

My versions are:
Node.js: 8.2.1
Chromium: 59.0.3071.115
Electron: 1.8.7

Thank you!

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.