Prevent a new recording from starting while processing
This commit is contained in:
parent
e1cc8b8829
commit
ad66b39ff8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user