Skip to content

Access the system camera via WebRTC using HTML5 and Javascript

Notifications You must be signed in to change notification settings

abhinavrastogi/rtc-cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A very simple boiler-plate code for accessing the system camera in your browser / web application, using HTML5's WebRTC and Javascript.

It reads the camera input via the <code>video</code> tag and the getUserMedia() API exposed by the browser. We then capture the video feed, read it frame-by-frame and render it in a canvas element at 60 frames per second. You can uncomment the middle section to apply effects like thresholding/motion-detection etc.

This was made by following the tutorials at:
 - https://developer.mozilla.org/en-US/docs/WebRTC
 - www.creativebloq.com/javascript/get-started-webrtc-1132857

About

Access the system camera via WebRTC using HTML5 and Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published