Whispeak: Use StereoAudioRecorder in recorder - refs BT#18405

pull/3766/head^2
Angel Fernando Quiroz Campos 5 years ago
parent 0447d33892
commit 3abb6deb62
  1. 9
      plugin/whispeakauth/assets/js/RecordAudio.js

@ -2,8 +2,7 @@
window.RecordAudio = (function () {
var timerInterval = 0,
$txtTimer = null,
isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
$txtTimer = null;
function startTimer() {
stopTimer();
@ -123,8 +122,10 @@ window.RecordAudio = (function () {
localStream = stream;
recordRTC = RecordRTC(stream, {
recorderType: isSafari ? RecordRTC.StereoAudioRecorder : RecordRTC.MediaStreamRecorder,
type: 'audio'
recorderType: RecordRTC.StereoAudioRecorder,
type: 'audio',
mimeType: 'audio/wav',
numberOfAudioChannels: 2
});
recordRTC.startRecording();

Loading…
Cancel
Save