Browse Source

Prevent a new recording from starting while processing

master
Sébastien Lerique 9 years ago committed by Jovan Gerodetti
parent
commit
ad66b39ff8
  1. 1
      app/js/directives.js

1
app/js/directives.js

@ -1561,6 +1561,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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…
Cancel
Save