@uppy/webcam
Advanced tools
Comparing version 1.6.10 to 1.6.11
@@ -287,2 +287,4 @@ var _class, _temp; | ||
// only used if supportsMediaRecorder() returned true | ||
// eslint-disable-next-line compat/compat | ||
this.recorder = new MediaRecorder(this.stream, this._getMediaRecorderOptions()); | ||
@@ -577,2 +579,2 @@ this.recordingChunks = []; | ||
return Webcam; | ||
}(Plugin), _class.VERSION = "1.6.10", _temp); | ||
}(Plugin), _class.VERSION = "1.6.11", _temp); |
module.exports = function supportsMediaRecorder() { | ||
/* eslint-disable compat/compat */ | ||
return typeof MediaRecorder === 'function' && !!MediaRecorder.prototype && typeof MediaRecorder.prototype.start === 'function'; | ||
/* eslint-enable compat/compat */ | ||
}; |
{ | ||
"name": "@uppy/webcam", | ||
"description": "Uppy plugin that takes photos or records videos using the device's camera.", | ||
"version": "1.6.10", | ||
"version": "1.6.11", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "36ab6f1d492edca678327a98629a0a53ba37604e" | ||
"gitHead": "32e5445facad7257d32d83b7c915a80bf2c7b65a" | ||
} |
@@ -243,2 +243,4 @@ const { h } = require('preact') | ||
_startRecording () { | ||
// only used if supportsMediaRecorder() returned true | ||
// eslint-disable-next-line compat/compat | ||
this.recorder = new MediaRecorder(this.stream, this._getMediaRecorderOptions()) | ||
@@ -245,0 +247,0 @@ this.recordingChunks = [] |
module.exports = function supportsMediaRecorder () { | ||
/* eslint-disable compat/compat */ | ||
return typeof MediaRecorder === 'function' && !!MediaRecorder.prototype && | ||
typeof MediaRecorder.prototype.start === 'function' | ||
/* eslint-enable compat/compat */ | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
105995
1474