From ad66b39ff8803e41956aa1c91933b55f71efc00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lerique?= Date: Tue, 15 Sep 2015 15:26:46 +0200 Subject: [PATCH] Prevent a new recording from starting while processing --- app/js/directives.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/js/directives.js b/app/js/directives.js index bbde5aad..90cdd715 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1561,6 +1561,7 @@ angular.module('myApp.directives', ['myApp.filters']) navigator.getUserMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); voiceRecord.on('touchstart', function(e) { + if ($scope.$parent.$parent.voiceRecorder.processing) { return; } navigator.getUserMedia({audio : true}, function(stream){ var start = Date.now(); var touch = null;