Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

306
Views
Google Chrome Extension - TypeError: Cannot read properties of undefined (reading 'getUserMedia') (manifest V3) in background.js service_worker

I am trying to use navigator.mediaDevices.getUserMedia and navigator.mediaDevices.getDisplayMedia in background.js in Manifest v3 for Google Chrome extensions and I am getting the error

TypeError: Cannot read properties of undefined (reading 'getUserMedia')

Implementation

 navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {
   
  })

The background.js is registered under service_worker key in manifest file using version 3. I need to use this function is background because the extension needs to record even when the popup is closed.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!