@bigbinary/neeto-media-recorder 2.5.1 → 2.5.3
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 +11 -5
- package/core.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -556,7 +556,9 @@ function compareChromiumVersions(version1, version2) {
|
|
|
556
556
|
return 0;
|
|
557
557
|
}
|
|
558
558
|
var getSupportedMimeType = function getSupportedMimeType(fallback) {
|
|
559
|
-
|
|
559
|
+
var _platform$os, _platform$os$family;
|
|
560
|
+
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");
|
|
561
|
+
if (MediaRecorder.isTypeSupported(MIME_TYPE.mp4) && !isWindows) {
|
|
560
562
|
if (platform.name === "Safari") {
|
|
561
563
|
return MIME_TYPE.mp4;
|
|
562
564
|
}
|