NeoWebCam: How to stop camera - Forum

Forum Navigation
You need to log in to create posts and topics.

NeoWebCam: How to stop camera

Hello everyone,

I have a question about the plugin NeoWebCam, once you iniate it, is it possible to stop the camera? I don't find the action and after iniciating it in a container, the camera keep up even though yo go back to another page. Even Android is still showing an icon that means that camera is on if you change to another Android App. How can we close or terminate the camera?

Thank you very much.

Uploaded files:
  • You need to login to have access to uploads.

@tonyspacex

try this:

beginjs
    for (let track of stream.getTracks()) {
        track.stop()
    }

endjs

 

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

Thank you very much, @emmanuel-fernandez

I have tried it and it close the camera correctly.

Regards,

@tonyspacex @emmanuel-fernandez attached neowebcam plugin with a new command: neoWebcamClose

Thank you!

Uploaded files:
  • You need to login to have access to uploads.
CDY@44 and tonyspacex have reacted to this post.
CDY@44tonyspacex
Quote from luishp on September 23, 2022, 1:50 pm

@tonyspacex @emmanuel-fernandez attached neowebcam plugin with a new command: neoWebcamClose

Thank you!

Thank you for updating the plugin!

luishp has reacted to this post.
luishp

Is there anyway we can add some motion detection options to the Webcam plugin please? It would open up a nice range of options for security monitoring / CCTV etc.

I have come across a few libraries including this one, would be great if we had something similar as part of the Webcam plugin :-)

https://github.com/lonekorean/diff-cam-scratchpad

 

luishp and Vadim have reacted to this post.
luishpVadim

@adrianbrookbank it looks interesting. I will check it. Thanks!

Vadim, CDY@44 and 2 other users have reacted to this post.
VadimCDY@44adrianbrookbankjavadrajabihakami