Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Webcam.js Error: No width and/or height for webcam. Please call set() first, or attach to a visible element. #3

Open
DavidLambauer opened this issue Dec 30, 2016 · 5 comments
Labels

Comments

@DavidLambauer
Copy link

Hi!
I just added your module in my fresh installed spark application. The button is displayed correctly and a modal opens when I click the rendered button. But instead of opening the camera, an alert message appear and says:

Webcam.js Error: No width and/or height for webcam. Please call set() first, or attach to a visible element.

My Spark Application is 3.0.5

@midnightcipher
Copy link

Any updates on this @DavidLambauer ? I'm trying to get this working.

@DavidLambauer
Copy link
Author

@ashleybakernz Nothing happened until I opened the Issue. Thank you for handling this one! :)

@DavidLambauer
Copy link
Author

@ashbakernz could you figure it out, yet? Want to make it together? I'll think this Repo isn't supported anymore, but I'll like the functionality. We may can combine the forces? xD

https://media.giphy.com/media/6IMXN40a9E9Es/giphy.gif

@cretueusebiu
Copy link
Owner

It is supported, but I can't reproduce the issue on my end.

@danieladarve
Copy link

danieladarve commented Dec 19, 2017

This is because the css included after the video modal is not being parsed.

<style>
    #profile-photo-camera-preview,
    #profile-photo-camera-preview video {
        width: 100% !important;
        height: auto !important;
        min-width: 100px;
        min-height: 100px;
    }
</style>

- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <style>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <style>, as they will not be parsed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants