MCPcopy Create free account
hub / github.com/VadimNotJustDev/SignalClone / stopRecording

Function stopRecording

components/MessageInput/MessageInput.tsx:235–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 }
234
235 async function stopRecording() {
236 console.log("Stopping recording..");
237 if (!recording) {
238 return;
239 }
240
241 setRecording(null);
242 await recording.stopAndUnloadAsync();
243 await Audio.setAudioModeAsync({
244 allowsRecordingIOS: false,
245 });
246
247 const uri = recording.getURI();
248 console.log("Recording stopped and stored at", uri);
249 if (!uri) {
250 return;
251 }
252 setSoundURI(uri);
253 }
254
255 const sendAudio = async () => {
256 if (!soundURI) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected