-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOLVED] How to remove the recording icon after clicking stop(); ? #76
Comments
Please check this: https://jsfiddle.net/wazb1jks/3/ navigator.getUserMedia(mediaConstraints, function(stream) {
window.streamReference = stream;
onMediaSuccess(stream);
}, onMediaError);
function stopStream() {
if (!window.streamReference) return;
window.streamReference.getAudioTracks().forEach(function(track) {
track.stop();
});
window.streamReference.getVideoTracks().forEach(function(track) {
track.stop();
});
window.streamReference = null;
} |
Thanks. 👍 |
Very Thanks, Muaz :) Regards. 2016-03-18 5:43 GMT-03:00 Muaz Khan notifications@github.com:
Atenciosamente, [image: --] David Damasceno |
I am using the MediaStreamRecorder.js library for audio capture with Javascript. Almost everything is ok. The only problem I am finding is that when I click on Stop to stop recording the red recording icon is still up there, on the tab. Anyone know how I remove this icon when you click Stop?
Example in jsFiddle: https://jsfiddle.net/davidsadan/wazb1jks
Here is the print of how it is when I click Stop
The text was updated successfully, but these errors were encountered: