Skip to content

Instantly share code, notes, and snippets.

View Shashi99rocky's full-sized avatar

Shashikant Shashi99rocky

  • Self Employed
  • Bhopal
View GitHub Profile
@damienstanton
damienstanton / webcam-component.js
Created November 28, 2017 12:44
React webcam raw
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
function hasGetUserMedia() {
return !!(navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia);
}
export default class Webcam extends Component {