NuxtN
Nuxt16mo ago
birazoz

getUserMedia on Nuxt 3

Hi everyone,
I have 2 applications with nuxt2 and nuxt3 using the same function to open camera on browser
this line of code:
await navigator.mediaDevices.getUserMedia({video: true, audio: false})

in nuxt2 this line works perfectly and asks for camera permission,
but in nuxt 3 it does not ask it so i cant open the camera on nuxt3 webapp

do anyone know why or how to deal with this situation?
Was this page helpful?