@bigbinary/neeto-media-recorder 1.3.19 → 1.3.20

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/index.js CHANGED
@@ -1291,6 +1291,10 @@ var MediaRecorder = function MediaRecorder(_ref, ref) {
1291
1291
  screenRecorder.resetState();
1292
1292
  };
1293
1293
  }, []);
1294
+ useEffect(function () {
1295
+ if (!isUploadStatus(UPLOAD_STATUS.insufficient_data)) return;
1296
+ handleDiscardRecording();
1297
+ }, [uploadStatus]);
1294
1298
  var shouldShowSafariExtensionCalloutToStartRecording = isRecorderStatus(SCREEN_RECORDER_STATUS.idle) && IS_SAFARI_EXTENSION && error === SCREEN_RECORDER_ERROR.None;
1295
1299
  if (error === SCREEN_RECORDER_ERROR.UnSupportedBrowser) {
1296
1300
  return /*#__PURE__*/React.createElement(UnSupportedBrowser, null);