@uppy/webcam
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -176,8 +176,11 @@ var _class, _temp; | ||
var options = {}; | ||
var preferredVideoMimeType = this.opts.preferredVideoMimeType; // Attempt to use the passed preferredVideoMimeType (if any) during recording. | ||
// If the browser doesn't support it, we'll fall back to the browser default instead | ||
var options = {}; // Safari don't have support for isTypeSupported api. | ||
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) { | ||
options.mimeType = preferredVideoMimeType; | ||
if (MediaRecorder.isTypeSupported) { | ||
var preferredVideoMimeType = this.opts.preferredVideoMimeType; // Attempt to use the passed preferredVideoMimeType (if any) during recording. | ||
// If the browser doesn't support it, we'll fall back to the browser default instead | ||
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) { | ||
options.mimeType = preferredVideoMimeType; | ||
} | ||
} | ||
@@ -455,2 +458,2 @@ | ||
return Webcam; | ||
}(Plugin), _class.VERSION = "1.5.4", _temp); | ||
}(Plugin), _class.VERSION = "1.5.5", _temp); |
{ | ||
"name": "@uppy/webcam", | ||
"description": "Uppy plugin that takes photos or records videos using the device's camera.", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "2c98271103539fbe46b37b9f8c2746bc7188b9c8" | ||
"gitHead": "b20bc7e1f1a3e4132dde0c311fff1ff18080414c" | ||
} |
@@ -159,8 +159,12 @@ const { h } = require('preact') | ||
const options = {} | ||
const preferredVideoMimeType = this.opts.preferredVideoMimeType | ||
// Attempt to use the passed preferredVideoMimeType (if any) during recording. | ||
// If the browser doesn't support it, we'll fall back to the browser default instead | ||
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) { | ||
options.mimeType = preferredVideoMimeType | ||
// Safari don't have support for isTypeSupported api. | ||
if (MediaRecorder.isTypeSupported) { | ||
const preferredVideoMimeType = this.opts.preferredVideoMimeType | ||
// Attempt to use the passed preferredVideoMimeType (if any) during recording. | ||
// If the browser doesn't support it, we'll fall back to the browser default instead | ||
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) { | ||
options.mimeType = preferredVideoMimeType | ||
} | ||
} | ||
@@ -167,0 +171,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
50220
1199
1