gpt4 book ai didi

flash - as3 确定相机访问是否被拒绝

转载 作者:行者123 更新时间:2023-12-04 06:44:33 24 4
gpt4 key购买 nike

如何确定 Flash 中是否拒绝访问相机和麦克风?

我可以拿到相机和麦克风,但我需要知道用户是否拒绝访问。

最佳答案

附加状态事件监听器并检查相机是否静音,请参阅文档:

Dispatched when a camera reports its status. Before accessing a camera, the runtime displays a Privacy dialog box to let users allow or deny access to their camera. If the value of the code property is "Camera.Muted", the user has refused to allow the SWF file access to the user's camera. If the value of the code property is "Camera.Unmuted", the user has allowed the SWF file access to the user's camera. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html#event:status



flash.media.Microphone 也有同样的东西。

关于flash - as3 确定相机访问是否被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8966912/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com