Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-video-preview

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-video-preview - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc