A-Frame AR change webcam viewport size (when i tried to change heigth and width, goes back)

Viewed 1021

I used jquery to try and size the video component that it generated from the a-scene, and it changes the value from the component, but i think that ar.js is triggering on resize event to ajust back to the window size. I've tried to change the arjs attribute but nothing happens.

let videoComponent = $("video");
videoComponent.height(300);
videoComponent.width(300);

<a-scene embedded arjs='sourceType: webcam; sourceWidth: 600; sourceHeight: 400; displayWidth: 600; displayHeight: 400; canvasWidth: 600; canvasHeight: 400; debugUIEnabled: false;' >

Is there a way to set a fixed size, instead of having it full screen/window sized?

1 Answers
Related