简体   繁体   中英

jQuery webcam plugin and flash webcam permissions

I'm using this jQuery plugin: 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. If I specifically set flash to allow webcam access to localhost , the plugin works.

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? That is the size that is needed for the permissions dialog. When your Flash file is smaller than that, it just won't appear.

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.

Maybe you don't have flash add-on enabled on your browser..^_^

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