Github user davetayls commented on a diff in the pull request: https://github.com/apache/cordova-plugin-camera/pull/154#discussion_r50270493 --- Diff: src/browser/CameraProxy.js --- @@ -66,7 +66,15 @@ function capture(success, errorCallback) { imageData = imageData.replace('data:image/png;base64,', ''); // stop video stream, remove video and button - localMediaStream.stop(); + try{ + localMediaStream.stop(); + }catch(e){} + + try{ + localMediaStream.getVideoTracks()[0].stop(); --- End diff -- you could also get an audio track so this might be better as: ```javascript localMediaStream.getTracks().forEach(function(mediaStream) { mediaStream.stop(); }); ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org