Spaces:
Sleeping
Sleeping
LeireTedCas
commited on
Commit
•
e51d789
1
Parent(s):
c6f4013
Update static/js/appadmision.js
Browse files- static/js/appadmision.js +6 -6
static/js/appadmision.js
CHANGED
@@ -32,8 +32,8 @@ function startRecording() {
|
|
32 |
Disable the record button until we get a success or fail from getUserMedia()
|
33 |
*/
|
34 |
|
35 |
-
|
36 |
-
|
37 |
//pauseButton.disabled = false
|
38 |
|
39 |
/*
|
@@ -73,8 +73,8 @@ function startRecording() {
|
|
73 |
|
74 |
}).catch(function (err) {
|
75 |
//enable the record button if getUserMedia() fails
|
76 |
-
|
77 |
-
|
78 |
//pauseButton.disabled = true
|
79 |
});
|
80 |
}
|
@@ -97,8 +97,8 @@ function stopRecording() {
|
|
97 |
console.log("stopButton clicked");
|
98 |
|
99 |
//disable the stop button, enable the record too allow for new recordings
|
100 |
-
|
101 |
-
|
102 |
//pauseButton.disabled = true;
|
103 |
|
104 |
//reset button just in case the recording is stopped while paused
|
|
|
32 |
Disable the record button until we get a success or fail from getUserMedia()
|
33 |
*/
|
34 |
|
35 |
+
recordButton.disabled = true;
|
36 |
+
stopButton.disabled = false;
|
37 |
//pauseButton.disabled = false
|
38 |
|
39 |
/*
|
|
|
73 |
|
74 |
}).catch(function (err) {
|
75 |
//enable the record button if getUserMedia() fails
|
76 |
+
recordButton.disabled = false;
|
77 |
+
stopButton.disabled = true;
|
78 |
//pauseButton.disabled = true
|
79 |
});
|
80 |
}
|
|
|
97 |
console.log("stopButton clicked");
|
98 |
|
99 |
//disable the stop button, enable the record too allow for new recordings
|
100 |
+
stopButton.disabled = true;
|
101 |
+
recordButton.disabled = false;
|
102 |
//pauseButton.disabled = true;
|
103 |
|
104 |
//reset button just in case the recording is stopped while paused
|