2 followers Follow

Is there a way to trigger to start and stop screen/video record from background using React?

We are trying to do screen record and video record simultaneously, our requirements are screen record should start automatically while page loads and while doing manually we are getting a popup to choose the screen, we should avoid when it is background process.

We find autorecord = {true}, but it's not working for screen recording.

Nagaraj S Jayaram

Please sign in to leave a comment.

1 comment


Hi Nagaraj,

The screen recording nor camera recording can not be started right away. It is considered that if the camera or screen access was possible without end-user interaction it would likely be used for bad purpose. At least this is how browser vendors saw this when considering the implementation.

Of course there are many legit reasons why this is needed and I understand why you need it as well.

So having that said, you will always need to show the option to allow access to camera, mic or desktop/screen.

So in short it is just not possible to do it without asking.

In terms of starting the recording or doing anything like that you can grab a reference to the embedding. The way to do it would be like so:

    onRef={ref => (this.child = ref)}

You could then invoke any method you need over this.child as you would otherwise.

Hope this helps :)


Bane 0 votes
Comment actions Permalink