Skip to content

Commit a8572e3

Browse files
committed
(fix) encoder options
1 parent 6c7eae1 commit a8572e3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/ChatWindow/Room/Room.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,6 @@ export default {
403403
textareaCursorPosition: null,
404404
recorder: this.initRecorder(),
405405
isRecording: false,
406-
bitRate: 128,
407-
sampleRate: 44100,
408406
format: 'mp3'
409407
}
410408
},
@@ -843,10 +841,7 @@ export default {
843841
beforeRecording: null,
844842
afterRecording: null,
845843
pauseRecording: null,
846-
micFailed: this.micFailed,
847-
bitRate: this.bitRate,
848-
sampleRate: this.sampleRate,
849-
format: this.format
844+
micFailed: this.micFailed
850845
})
851846
},
852847
micFailed() {

src/utils/recorder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default class {
1010
this.micFailed = options.micFailed
1111

1212
this.encoderOptions = {
13-
bitRate: options.bitRate,
14-
sampleRate: options.sampleRate
13+
bitRate: 128,
14+
sampleRate: 44100
1515
}
1616

1717
this.bufferSize = 4096

0 commit comments

Comments
 (0)