Coder Social home page Coder Social logo

Comments (3)

rroriz avatar rroriz commented on June 16, 2024 1

I know that this thread is a year old, but if you REALLY need to use it locally (like i had to), you can change your Global Security Settings (of flash player) to trust files in a determined folder.

With that configured, i could use the plugin locally.

from jquery-webcam.

drewww avatar drewww commented on June 16, 2024

I've had exactly this issue too. The example on the main project page works great, but when I try to recreate it either from scratch (with just a one-div page and calling $("#webcam").webcam({ normal setup parameters}); onLoad never gets called and I always get the same "not yet registered" error message.

I've tried copying the main xarg page that has the demo on it and change only the include link for the swf (because /download/ isn't going to work locally) I get the "not yet registered!" error. Is there something I'm missing?

I'd really love a minimal example case in the repository somewhere, because trying to adapt your example page is a bit of a struggle because it's part of a full website with all the includes, etc, that entails.

from jquery-webcam.

drewww avatar drewww commented on June 16, 2024

Okay, so the issue turns out to be that if you open a page locally (e.g. file:///) Flash will (as far as I can tell) simply decline to expose ExternalInterfaces to Javascript. I'm not really sure why this is (perhaps some sort of XSS issue? XMLHttpRequest also fails in confusing and subtle ways if you issue calls from a page loaded over file:///), but serving this simple gist (https://gist.github.com/2794406) over http works fine.

It might be worth adding a note about this in the site - I just blew like 90 minutes on trying to sort this out before realizing that was the issue. Would send a pull request, but there's nothing really in this repo that explains how to use the plugin that is easily forkable/editable.

from jquery-webcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.