close WebcamVideo

i would like to know if there is a possibility to close/destroy the WebcamVideo? I know how to remove the card with the video texture, but the camera is still recording.

Hmm, I don’t know of any interface to guarantee the texture gets released. Seems like we need to add an interface for this.

In the meantime, you might be able to achieve it by ensuring the Texture removing the card and then clearing all of the caches, with something like this:

tex = myMovieTexture
print tex.getRefCount()
print tex.getRefCount()
del tex


ok, but this doesn’t switch the webcam off. I can see it, because my camera has a blue shine if it’s active.

The main problem is, if i want to restart the camera during runtime, i only get a white screen.

In that case, just keep a pointer to your texture, and put it back onscreen that whenever you want to “restart” the camera.