How to disable the camera using Flash AS3?

I have a flash app that connects to users' webcams using

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

      

When an application is executed using a webcam, it needs to be disabled as it unnecessarily uses up resources. How can i do this?

Apologizes for being "micro-efficient". I'm not even sure how inefficient it is, but I don't like the idea of ​​connecting a camera when not in use.

I checked the API and couldn't find any function to do this.

Thanks for any help.

+1


a source to share


1 answer


Call NetStream :



attachCamera(null);

      

+7


a source







All Articles