Page 1 of 1

Screen recording using getUserMedia doesn't resume on unlock

PostPosted: Wed Sep 27, 2023 6:40 am
by girivasans
Hi,

We record windows desktop screen using navigator.mediaDevices.getUserMedia api. When the machine is locked (Win + l) during active desktop screen recording, recording (MediaStream) stopped and doesn't resume after unlocking the machine.
Is there a chromium flag/option to make recording (MediaStream) resume on unlocking the machine. Web Camera's MediaStream is getting stopped on machine lock and resumed on unlocking machine. And also I would like to understand why this is being handled in this manner for screen sharing/recording, compared to streaming web camera. Could you please let me know reasoning behind this ?

Please see https://chromium.googlesource.com/chrom ... ger.cc#963 and https://chromium.googlesource.com/chrom ... ger.cc#934

Re: Screen recording using getUserMedia doesn't resume on un

PostPosted: Wed Sep 27, 2023 9:19 am
by magreenblatt
How does it behave in Google Chrome? Your questions are about Chromium code, so you should ask on an appropriate Chromium mailing list (probably media-dev).

Re: Screen recording using getUserMedia doesn't resume on un

PostPosted: Thu Sep 28, 2023 7:18 am
by girivasans
Screen recording/sharing with navigator.mediaDevices.getUserMedia api is not possible in Chrome without showing pop up for user permission.
Ours is a desktop app based on Chromium.
I am following up with media-dev email group. Thanks !