简体   繁体   English

如何断开webcam.js中的网络摄像头?

[英]how to disconnect the webcam in webcam.js?

Does anyone know how can I disconnect the webcam in webcam.js? 有谁知道如何断开webcam.js中的网络摄像头?

I'm using Webcam.attach(webcam.js) to connect to the webcam. 我正在使用Webcam.attach(webcam.js)连接到网络摄像头。 However, I try to use webcam.reset() to disconnect the webcam and it's seem not working. 但是,我尝试使用webcam.reset()断开网络摄像头,但似乎无法正常工作。 The webcam is still on and the tab of the browser show webcam is connected (red dot showing on the tab). 网络摄像头仍处于打开状态,浏览器的选项卡显示网络摄像头已连接(选项卡上显示红点)。

Does anyone know how can I disconnect it in webcam.js? 有人知道如何在webcam.js中断开连接吗?

I've tried Webcam.reset( '#my_camera' ) with no problem. 我尝试了Webcam.reset( '#my_camera' )没问题。
Tested on: https://pixlcore.com/demos/webcamjs/demos/basic.html 测试于: https : //pixlcore.com/demos/webcamjs/demos/basic.html

Did you check for console errors? 您是否检查过控制台错误?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM