react-visual-audio-recorder
Advanced tools
Comparing version
{ | ||
"name": "react-visual-audio-recorder", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -46,2 +46,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const [startTime, setStartTime] = useState(); | ||
const [resetApiKey, setResetApi] = useState(Date.now()); | ||
function resetApi() { | ||
setResetApi(Date.now); | ||
} | ||
const chunks = useRef([]); | ||
@@ -87,3 +91,3 @@ let constraints = useMemo(() => ({ | ||
} | ||
}), []); | ||
}), [resetApiKey]); | ||
function onHandleChunks(event) { | ||
@@ -138,2 +142,3 @@ chunks.current.push(event.data); | ||
} | ||
resetApi(); | ||
} | ||
@@ -140,0 +145,0 @@ function stopRecording() { |
28341
0.55%509
0.99%