Question

I have a flash application that connects to a users webcam using

public static function getCamera(name:String = null):Camera

When the application is done with the use of the webcam it needs to be disconnected since its making use of resources unnecessarily.How can I do this?

Apologies for being a "micro-efficiency" freak. I am not even sure how inefficient it is, but I don't like the idea of the camera being just connected when not used.

I have checked the API and have found no function to do that.

Thank you for any help.

Was it helpful?

Solution

Call on you NetStream:

attachCamera(null);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top