react-video-preview
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -31,2 +31,3 @@ 'use strict'; | ||
navigator.getMedia = navigator.getUserMedia; | ||
var defaultVideoId = "webcam-preview"; | ||
@@ -77,3 +78,3 @@ function Preview(WrappedComponent) { | ||
var videoEl = document.getElementById(videoId); | ||
var videoEl = document.getElementById(videoId || defaultVideoId); | ||
var streamOptions = { | ||
@@ -168,3 +169,3 @@ audio: audio || false, | ||
return _react2.default.createElement('video', { | ||
id: 'webcam-preview', | ||
id: defaultVideoId, | ||
className: props.className || "video", | ||
@@ -179,3 +180,3 @@ height: props.height, | ||
return _react2.default.createElement('video', { | ||
id: 'webcam-preview', | ||
id: defaultVideoId, | ||
className: props.className || "video", | ||
@@ -182,0 +183,0 @@ height: props.height, |
{ | ||
"name": "react-video-preview", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Little video preview using webRTC", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
426764
8412