Access webcam of device (getUserMedia)

Hi all,

I just stumbled upon a blog post of play canvas regarding the access to webcamera by using getUserMedia

My requirement is for the same but I am not sure where exactly to do it. I have already achieved this in native javascript (not in play canvas) but I am not sure on how to achieve it here.

I would really appreciate if you can help me into this.


^^ have u tried drag&drop ur native javascript in to the asset space?

1 Like

Check out PlayCanvasAR on GitHub:

It uses getUserMedia for AR purposes. The particular line of interest is here: