Flash - 阻止网络摄像头/麦克风访问被记住
我有一个在允许/拒绝网络摄像头/麦克风访问时触发的事件。
addEventListener(StatusEvent.STATUS, sendStatusResponse);
我需要每次都触发 sendStatusResponse 以让服务器知道流已启动,但是如果用户单击了记住复选框,则该函数永远不会被触发。
有没有办法阻止他们点击“记住”,或者是否有更好的事件可以使用,以便我可以存储流实际开始的时间戳。
感谢您的帮助,非常感谢:)
I have an event that's triggered when the webcam/mic access is allowed/denied.
addEventListener(StatusEvent.STATUS, sendStatusResponse);
I need sendStatusResponse to be fired everytime to let the server know the stream has started, however if the user has clicked on the remember checkbox this function is never fired.
Is there a way I can prevent them from clicking remember, or is there a better event to use so that I can store a timestamp of when the stream ACTUALLY started.
Thanks for any help, much appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您想要 ACTIVITY 事件而不是 STATUS:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html#event:activity
Looks like you want the ACTIVITY event rather than STATUS:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html#event:activity