@bigbinary/neeto-media-recorder 2.7.45 → 2.7.46

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 CHANGED
@@ -1,11 +1,9 @@
1
1
  import axios from 'axios';
2
2
  import { isNotEmpty, existsBy, isNot, noop } from '@bigbinary/neeto-cist';
3
- import { MIME_TYPE as MIME_TYPE$1, UPLOAD_EVENT, UPLOAD_STATUS, SCREEN_RECORDER_STATUS as SCREEN_RECORDER_STATUS$1, COUNTDOWN_TIME } from '@bigbinary/neeto-media-recorder/constants';
3
+ import { UPLOAD_EVENT, UPLOAD_STATUS, SCREEN_RECORDER_STATUS as SCREEN_RECORDER_STATUS$1, COUNTDOWN_TIME } from '@bigbinary/neeto-media-recorder/constants';
4
4
  import { useMultipartS3UploadStatus as useMultipartS3UploadStatus$1, getMultipartS3Uploader as getMultipartS3Uploader$1 } from '@bigbinary/neeto-media-recorder/core';
5
5
  import { isNotNil, min, isNil, identity, isEmpty, pick, not } from 'ramda';
6
6
  import platform from 'platform';
7
- import '@bigbinary/neeto-commons-frontend/utils/general';
8
- import '@bigbinary/neetoui/Toastr';
9
7
  import withImmutableActions from '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
10
8
  import { create as create$3 } from 'zustand';
11
9
  import { useSyncExternalStore } from 'react';
@@ -925,6 +923,10 @@ var getMediaRecorderOptions = function getMediaRecorderOptions() {
925
923
  mimeType: mimeType
926
924
  };
927
925
  };
926
+ var isMp4Supported = function isMp4Supported() {
927
+ var mimeType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSupportedMimeType();
928
+ return mimeType.includes(MIME_TYPE.mp4);
929
+ };
928
930
  var addGainNode = function addGainNode(audioStream) {
929
931
  var gain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1.5;
930
932
  var audioContext = new AudioContext();
@@ -956,11 +958,6 @@ var s3Api = {
956
958
  presignedUpload: retryablePresignedUpload
957
959
  };
958
960
 
959
- var isMp4Supported = function isMp4Supported() {
960
- var mimeType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSupportedMimeType();
961
- return mimeType.includes(MIME_TYPE$1.mp4);
962
- };
963
-
964
961
  var createPrefixedLogger = function createPrefixedLogger(prefix) {
965
962
  return {
966
963
  info: function info() {