i’m building a chrome extension that is used for screen and video capturing. Curently I’m having issuing with capturing both user’s camera and screen at the same time. I had to capture the user’s camera and display it to them while the recording of screen is going on.
I had initilized the request from the offscreen.js but I couldnt get it to display it on the screen because I couldn’t use document.querySelector
from there as it return null
Second I have tried initializing the request from content-script but it would appear with the name of the hosting site.
My question now is:
- Is there a way I could initialize the request from content-script to still appear with the extension name
- How could I capture the video and get the stream displayed to the user from inside offscreen js
.. Any better way of getting this to work is welcomed. This implementation is already in loom chrome extension. But I couldnt figure out how they got that to work