Giter Site home page Giter Site logo

basemax / javascriptwebcamdemo Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 43 KB

Get Webcam frames in javascript and Watch Webcam Stream in video tag.

Home Page: https://basemax.github.io/JavascriptWebcamDemo/

License: MIT License

HTML 42.43% JavaScript 57.57%
webcam webcam-capture webcam-streaming webcam-viewer webcamjs js javascript

javascriptwebcamdemo's Introduction

Javascript Webcam Demo

Get Webcam frames in javascript and Watch Webcam Stream in video tag.

Try it

Javascript Webcam Demo

Some of the code is taken from sources on the Internet. (stop function)

I not have a webcam, So how to test?

Unfortunately, I do not have a webcam or microphone in my personal system. So you might be wondering how I tested the script?

Given that my operating system is Linux. I activated the v4l2loopback module. And with the help of ffmpeg I simulated a virtual webcam.

$ sudo modprobe v4l2loopback
$ ffmpeg -f x11grab -r 15 -s 512x512 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
$ v4l2-ctl --list-devices
$ ffplay /dev/video0

Max Base

My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers.

Asrez Team

A team includes some programmer, developer, designer, researcher(s) especially Max Base.

Asrez Team

javascriptwebcamdemo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

spcool555

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.