简体   繁体   中英

How do you disconnect from a camera using Flash AS3?

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.

呼叫您NetStream

attachCamera(null);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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