Last touches for new audiowave integration

This commit is contained in:
Koper
2023-07-21 18:08:42 +07:00
parent 863a04094b
commit f4235147aa
5 changed files with 108 additions and 92 deletions

View File

@@ -18,11 +18,10 @@ const App = () => {
.then(setStream)
.catch((err) => console.error(err));
} else if (!recording && serverData.peer) {
serverData.peer.send(JSON.stringify({ cmd: 'STOP' }));
serverData.peer.send(JSON.stringify({ cmd: "STOP" }));
}
};
const serverData = useWebRTC(stream, setIsRecording);
return (
@@ -45,4 +44,4 @@ const App = () => {
);
};
export default App;
export default App;