Answer
Can a PWA record the screen?
Yes, on desktop browsers. navigator.mediaDevices.getDisplayMedia() lets a page request permission to capture a tab, an application window or the entire screen — the user explicitly chooses which one from a native OS picker every time. Combined with the MediaRecorder API, a PWA can record and save screen video entirely client-side. Mobile browser support is more limited than desktop.
How it works
getDisplayMedia() returns a MediaStream after the user picks a source from the browser’s native chooser; there is no way to bypass this selection step programmatically.
Recording it
Feed the returned stream into a MediaRecorder to produce a video file (typically WebM) client-side, without any server round-trip.
Platform support
Well supported on desktop Chrome, Edge, Firefox and Safari; mobile support historically lagged and varies by browser version.