Is there a way to use camera in the plasmic app ?

Hi , I am working on the app that would use camera . Is there any way i can use camera in my plasmic app ?

It would be really great if someone could help me with that . Any ?

I wanted to put embed html window nad put there all thje js code but I would have to put api keys out there so … Eveyrone would know them .

You don’t need a special external library for basic camera access; it’s built directly into web browsers. The process uses standard JavaScript and HTML.

  • MediaDevices API: This is the main browser API that provides access to connected hardware like cameras and microphones.
  • getUserMedia() Method: You’ll call this JavaScript function to request access to the user’s camera. It will trigger a permission prompt for the user to accept.
  • HTML
  • Create a Custom Code Component: In your Plasmic project, you’ll add a custom component to hold the necessary HTML and JavaScript.
  • Add the HTML: Inside the component, you’ll add a simple
  • Add the JavaScript: You will write a script that finds the

I know I fixed it already , one more question - > Is there any way to let camera work in background and microphone as well . I am working on the app for my client , it works fine , when client opens app I work on , it checks by microphone and camera if there is a voice / sound , whenever there is a signal / voice it makes a sound . It works fine but when I go into different app or in backougrd it doesnt work . Sorry for my english .