This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Gregory Dean Hall
Posted Apr 20 - Read on Facebook

I have tried to install the Camerlayer module. I have also put the CameraLayer.coffee file in modules. What do I do now? Really struggling here. Thanks:)

12 Comments

Arron J Hunt

Is this the module you're using? https://github.com/ktcy/CameraLayer

Arron J Hunt

They have an example in the Readme

Gregory Dean Hall

yes- Utils.domLoadScriptSync('CameraLayer.js');

var CameraLayer = Framer.CameraLayer;
var Camera = new CameraLayer();
camera.start();

Gregory Dean Hall

which is javascipt- Framer doesnt like it

Gregory Dean Hall

okay it is happy with this now: myModule = require "CameraLayer"

Utils.domLoadScriptSync('CameraLayer.js');

var CameraLayer = Framer.CameraLayer;
var Camera = new CameraLayer();
camera.start();

Gregory Dean Hall

but still no joy

Keishi Tsuchiya

Framer Studio is using WebKit same as Safari, and it doesn't yet support the camera access. You should view your prototype with Google Chrome. Try Framer Studio -> Mirror -> Copy Link, and paste the link to Chrome.

Gregory Dean Hall

Thanks Keishi Tsuchiya, I am not winning at all though. Can you give me direct instructions for installing your module and does it work on the actual device itself? Thanks:)

Keishi Tsuchiya

I added instructions for Framer Studio. I hope it will help you.
https://github.com/ktcy/CameraLayer

Also the CameraLayer should work on an actual device (Android only). But it seems to be unstable depending on the device. I've only confirmed that Google Chrome on Nexus 5 successfully works.

Gregory Dean Hall

Okay thanks, got it to work. Can I put layers on top of it? It also doesn't listen to index. Is this right? Thank you

Gregory Dean Hall

Also hopefully iPhone soon😆

Marco Paglia

Hi, is there a way to freeze the frame? I'm trying to simulate taking an actual photo..

Read the entire post on Facebook