@bigbinary/neeto-media-recorder 2.7.26 → 2.7.27
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 +3 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1304,10 +1304,7 @@ var useAudioIsCapturing = function useAudioIsCapturing(_ref) {
|
|
|
1304
1304
|
var resumeTimer = function resumeTimer() {
|
|
1305
1305
|
if (timerRef.current || !timerStarted || disable) return;
|
|
1306
1306
|
logger.info("useAudioIsCapturing resumeTimer");
|
|
1307
|
-
|
|
1308
|
-
timerRef.current = setTimeout(function () {
|
|
1309
|
-
return setHasAudio(false);
|
|
1310
|
-
}, remainingRef.current);
|
|
1307
|
+
armTimer();
|
|
1311
1308
|
};
|
|
1312
1309
|
var reset = useCallback(function () {
|
|
1313
1310
|
logger.info("useAudioIsCapturing reset");
|
|
@@ -1374,6 +1371,7 @@ var useAudioIsCapturing = function useAudioIsCapturing(_ref) {
|
|
|
1374
1371
|
var _callbacks;
|
|
1375
1372
|
if (!isMicOn) return noop;
|
|
1376
1373
|
var callbacks = (_callbacks = {}, _defineProperty(_callbacks, SCREEN_RECORDER_EVENT.onStart, function () {
|
|
1374
|
+
logger.info("useAudioIsCapturing onStart");
|
|
1377
1375
|
reset();
|
|
1378
1376
|
setTimerStarted(true);
|
|
1379
1377
|
armTimer();
|
|
@@ -1387,6 +1385,7 @@ var useAudioIsCapturing = function useAudioIsCapturing(_ref) {
|
|
|
1387
1385
|
}), _defineProperty(_callbacks, SCREEN_RECORDER_EVENT.onPause, function () {
|
|
1388
1386
|
pauseTimer();
|
|
1389
1387
|
}), _defineProperty(_callbacks, SCREEN_RECORDER_EVENT.onStop, function () {
|
|
1388
|
+
logger.info("useAudioIsCapturing onStop");
|
|
1390
1389
|
clearTimer();
|
|
1391
1390
|
reset();
|
|
1392
1391
|
}), _defineProperty(_callbacks, "disable-mic-not-working-warning", function disableMicNotWorkingWarning() {
|
|
@@ -1397,8 +1396,6 @@ var useAudioIsCapturing = function useAudioIsCapturing(_ref) {
|
|
|
1397
1396
|
reset();
|
|
1398
1397
|
}, 500);
|
|
1399
1398
|
}), _callbacks);
|
|
1400
|
-
// start straight a way.
|
|
1401
|
-
callbacks[SCREEN_RECORDER_EVENT.onStart]();
|
|
1402
1399
|
Object.entries(callbacks).forEach(function (_ref2) {
|
|
1403
1400
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
1404
1401
|
ev = _ref3[0],
|