As shown in the screenshot above, which is a screenshot of the custom-layout recording, I want to select the current tab, make sure the “Share audio” checkbox is selected, and then click the Share button so that I can the stream object with both the video/audio.
Essentially, is there a way to pass along the “auto-accept-this-tab-capture” flag to OpenVidu when recordings start?
I’m not 100% sure what I said makes sense, would work, or is accurate. I’m just trying to brainstorm ways of getting access to the stream object from .getDisplayMedia()
So, the solution is pretty simple: create your own recording Docker image based on the official image,
adding any parameter you want to that script. And you can then configure it in your OpenVidu deployment with this environment variable:
That being said, I have one question… I’m not able to imagine a single scenario where I would want the Chrome container of COMPOSED recording to call getDisplayMedia… In fact, the Chrome container should be a passive participant of the session, just acting as a Subscriber and displaying the session streams on its layout. Why do you want it to act as a Publisher?
Essentially I wanted to do a custom recording on the user’s browser in certain situations but I opted to do this on the server side instead in the end. It just made it a much better user experience overall.