@bigbinary/neeto-media-recorder 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +3 -1
- package/core.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/core.js
CHANGED
|
@@ -827,7 +827,9 @@ function compareChromiumVersions(version1, version2) {
|
|
|
827
827
|
return 0;
|
|
828
828
|
}
|
|
829
829
|
var getSupportedMimeType = function getSupportedMimeType(fallback) {
|
|
830
|
-
|
|
830
|
+
var _platform$os, _platform$os$family;
|
|
831
|
+
var isWindows = (_platform$os = platform.os) === null || _platform$os === void 0 ? void 0 : (_platform$os$family = _platform$os.family) === null || _platform$os$family === void 0 ? void 0 : _platform$os$family.includes("Windows");
|
|
832
|
+
if (MediaRecorder.isTypeSupported(MIME_TYPE.mp4) && !isWindows) {
|
|
831
833
|
if (platform.name === "Safari") {
|
|
832
834
|
return MIME_TYPE.mp4;
|
|
833
835
|
}
|