Skip to content

[Modules] swf expects global Webcam object for hooks #63

@positlabs

Description

@positlabs

Using webcamjs with a module system (commonjs) is currently incompatible with the webcam.swf callback hooks. I'm guessing that it's expecting there to be a global Webcam object with a flashNotify method.

To solve this, we could define a unique method name on the window, and pass the name to the swf when it is created.

window.__webcamjs-flash-notify_{uuid} = function(type, msg){...}

This would allow easy(er) setup with module systems.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions