简体   繁体   English

jQuery 网络摄像头插件和 flash 网络摄像头权限

[英]jQuery webcam plugin and flash webcam permissions

I'm using this jQuery plugin: http://www.xarg.org/project/jquery-webcam-plugin/我正在使用这个 jQuery 插件: http://www.xarg.org/project/jquery-webcam-plugin/

When I run this code on localhost , I never see the flash permissions request to access the webcam.当我在localhost上运行此代码时,我从未看到访问网络摄像头的 flash 权限请求。 If I specifically set flash to allow webcam access to localhost , the plugin works.如果我专门设置 flash 以允许网络摄像头访问localhost ,则该插件可以工作。

What step am I missing to cause this plugin to request permissions?我错过了哪一步导致该插件请求权限?

I have never used the above mentioned plugin, but could it be that you are setting the width and height to a smaller value than 214x137?我从未使用过上述插件,但您是否将宽度和高度设置为小于 214x137 的值? That is the size that is needed for the permissions dialog.这是权限对话框所需的大小。 When your Flash file is smaller than that, it just won't appear.当您的 Flash 文件小于该文件时,它就不会出现。

A solution to that is resizing the component after access has been granted or denied.一个解决方案是在访问被授予或拒绝后调整组件的大小。 Although I do not know whether or not that works with the jquery plugin.虽然我不知道这是否适用于 jquery 插件。

Maybe you don't have flash add-on enabled on your browser..^_^也许您没有在浏览器上启用 flash 附加组件..^_^

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

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