Prevent a new recording from starting while processing

This commit is contained in:
Sébastien Lerique 2015-09-15 15:26:46 +02:00 committed by Jovan Gerodetti
parent e1cc8b8829
commit ad66b39ff8

View File

@ -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;