parent
78c811536d
commit
d90aa3bce2
1 changed files with 3 additions and 4 deletions
|
|
@ -266,7 +266,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
this.stopRecordTimer();
|
this.stopRecordTimer();
|
||||||
this.recorder = null;
|
|
||||||
this.$emit("close");
|
this.$emit("close");
|
||||||
},
|
},
|
||||||
mouseUp(ignoredEvent) {
|
mouseUp(ignoredEvent) {
|
||||||
|
|
@ -312,7 +311,7 @@ export default {
|
||||||
const MicRecorder = require("mic-recorder-to-mp3");
|
const MicRecorder = require("mic-recorder-to-mp3");
|
||||||
// Start recording. Browser will request permission to use your microphone.
|
// Start recording. Browser will request permission to use your microphone.
|
||||||
this.recorder = new MicRecorder({
|
this.recorder = new MicRecorder({
|
||||||
bitRate: 128,
|
bitRate: 32,
|
||||||
});
|
});
|
||||||
this.recorder
|
this.recorder
|
||||||
.start()
|
.start()
|
||||||
|
|
@ -346,8 +345,8 @@ export default {
|
||||||
this.getFile(true);
|
this.getFile(true);
|
||||||
},
|
},
|
||||||
send() {
|
send() {
|
||||||
console.log("Send:", this.recordedFile);
|
//console.log("Send:", this.recordedFile);
|
||||||
//this.$emit("file", {file: file});
|
this.$emit("file", {file: this.recordedFile});
|
||||||
// const player = new Audio(URL.createObjectURL(file));
|
// const player = new Audio(URL.createObjectURL(file));
|
||||||
// player.play();
|
// player.play();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue