Skip to content

Commit 089be67

Browse files
initial checkin
1 parent 16e21f9 commit 089be67

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/AudioRecorder.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ export default {
7171
const r = await AudioRecorder.stop();
7272
};
7373
74-
const startPlaying = () => {
75-
AudioRecorder.startPlaying({ fileName: filePath });
74+
const startPlaying = async () => {
75+
await AudioRecorder.startPlaying({ fileName: filePath });
7676
};
7777
78-
const stopPlaying = () => {
79-
AudioRecorder.stopPlaying();
78+
const stopPlaying = async () => {
79+
await AudioRecorder.stopPlaying();
8080
81-
AudioRecorder.deleteRecording({ fileName: filePath });
81+
await AudioRecorder.deleteRecording({ fileName: filePath });
8282
};
8383
8484
return {

0 commit comments

Comments
 (0)