-
Notifications
You must be signed in to change notification settings - Fork 116
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
Unable to deactivate the camera stream #23
Comments
I think you need to make sure the call to function $stopWebcam(scanner){
console.log(scanner);
if (scanner.videoStream) {
var stream = scanner.videoStream;
stream.stop?stream.stop():stream.getTracks && stream.getTracks().forEach(function(track){
track.stop();
}
);
scanner.videoStream = null;
}
} |
This is how I am doing it with Jquery Attached to modal shown and hide
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My assumptions would be that using .removeFrom( htmlElement ) or .stopScanning() would deactivate the camera stream; however, I'm not having success with this. Does anyone have any suggestions on how to deactivate the camera stream setup when using .appendTo( htmlElement )?
The text was updated successfully, but these errors were encountered: