I would like to call
navigator.mediaDevices.getUserMedia({ audio: true, video: true }).then(() => {...});
in my background.js
.
But It will neither resolve nor reject.
I try to run it in console of background.js
, but only get
Promise {status: "pending"} = $1