Hi guys! Is possible to implement this photo frame A-Frame: Photo Frame | 8th Wall Playground | 8th Wall to only the photo/video capture with front camera? I donβt want that the back camera to have this. In other words, is there a way to detect the camera from what the photo/video is taken/recorded?
@Andres_Salomon xrface
always opens up the front camera by default as is in the project mentioned in your question.
According to docs you can configure the cameraDirection
to either βfrontβ or βbackβ based on your use case.
Hi @mihir_m ! Yeah I understand what you are saying, but maybe I didnβt explain correctly my need.
I have an experience where I use back camera and front camera (I switch between them) and I want only to apply that kind of frame and other stuffs to only the capture from front camera!
Assuming that you are using an event like click to switch to front or back camera, you could enable the frame on user click for front camera and remove the frame when user switches to back camera.
You can set style.display to none for the image on this line A-Frame: Photo Frame | 8th Wall Playground | 8th Wall
Yeap, I switch between cameras with a click. So, I can execute method1 (like the one in the example) in a component, not in app.js? Asking because I thought it was something that you have to do when starting the application (where app.js is executed).
I mean, can I execute this every time I want?:
const onxrextrasloaded = () => {
method1()
}
window.XRExtras ? onxrextrasloaded() : window.addEventListener('xrextrasloaded', onxrextrasloaded)