简体   繁体   English

如何使用Flash AS3与相机断开连接?

[英]How do you disconnect from a camera using Flash AS3?

I have a flash application that connects to a users webcam using 我有一个Flash应用程序,该应用程序使用

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. 我检查了API,但没有找到执行此操作的功能。

Thank you for any help. 感谢您的任何帮助。

呼叫您NetStream

attachCamera(null);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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