mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-17 13:38:05 +00:00
Add recording function improvements
This commit is contained in:
@@ -339,6 +339,7 @@
|
|||||||
<v-dialog
|
<v-dialog
|
||||||
v-model="recordingDialog"
|
v-model="recordingDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
|
persistent="true"
|
||||||
>
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
@@ -349,11 +350,17 @@
|
|||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="cancelRecording"
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
@click="stopRecording"
|
@click="stopRecording"
|
||||||
>
|
>
|
||||||
Stop
|
Stop and Save
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|||||||
@@ -727,6 +727,7 @@ export default {
|
|||||||
async stopRecording () {
|
async stopRecording () {
|
||||||
const recording = await this.recorder.stop()
|
const recording = await this.recorder.stop()
|
||||||
|
|
||||||
|
// Set active profile back to the selected one
|
||||||
this.loadProfile()
|
this.loadProfile()
|
||||||
|
|
||||||
const url = URL.createObjectURL(recording)
|
const url = URL.createObjectURL(recording)
|
||||||
@@ -735,6 +736,16 @@ export default {
|
|||||||
anchor.href = url
|
anchor.href = url
|
||||||
anchor.click()
|
anchor.click()
|
||||||
|
|
||||||
|
clearInterval(this.recordingInterval)
|
||||||
|
this.recordingDialog = false
|
||||||
|
this.stop()
|
||||||
|
},
|
||||||
|
async cancelRecording () {
|
||||||
|
await this.recorder.stop()
|
||||||
|
|
||||||
|
// Set active profile back to the selected one
|
||||||
|
this.loadProfile()
|
||||||
|
|
||||||
clearInterval(this.recordingInterval)
|
clearInterval(this.recordingInterval)
|
||||||
this.recordingDialog = false
|
this.recordingDialog = false
|
||||||
this.stop()
|
this.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user