2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-06 22:40:47 +00:00
nativefier/app/src/helpers
Johan von Forstner 79009e87cd
Add getDisplayMedia and PipeWire support (#1477)
I'm picking up @RickStanley's abandoned PR #1321 again to add
screensharing support (fixes #927), with the following additional
changes:

- In newer Electron versions, `desktopCapturer.getSources` must be
called from the main process, so I solved this with an IPC call.
- Importing from `./helpers/helpers` in 'preload.ts' does not work, as
was mentioned by @DimICE in
https://github.com/nativefier/nativefier/pull/1321#issuecomment-1001518035.
I'm not very familiar with TypeScript or Electron, so not sure why that
is and how it could be solved - for now I just copied the referenced
`isWayland` function to `preload.ts`.
- Add a screensharing test to the manual test script, as requested by
@ronjouch in
https://github.com/nativefier/nativefier/pull/1321#issuecomment-1006725818

As far as I understood from the discussion in #1321, the last point was
basically the only thing that was missing to get this merged, correct?

---------

Co-authored-by: Rick Stanley <rick-stanley@outlook.com>
Co-authored-by: Rick Stanley <rick.stanley@lambda3.com.br>
Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>
2023-03-23 11:50:19 -04:00
..
helpers.test.ts Add validation to opening URLs in external desktop handler (fix #1459) 2022-09-17 22:22:19 -04:00
helpers.ts Add getDisplayMedia and PipeWire support (#1477) 2023-03-23 11:50:19 -04:00
inferFlash.ts Add playwright integration testing to the app (PR #1397) 2022-04-20 22:03:49 -04:00
loggingHelper.ts Add playwright integration testing to the app (PR #1397) 2022-04-20 22:03:49 -04:00
playwrightHelpers.ts Add playwright integration testing to the app (PR #1397) 2022-04-20 22:03:49 -04:00
windowEvents.test.ts Add validation to opening URLs in external desktop handler (fix #1459) 2022-09-17 22:22:19 -04:00
windowEvents.ts Add validation to opening URLs in external desktop handler (fix #1459) 2022-09-17 22:22:19 -04:00
windowHelpers.test.ts Upgrade Electron from 13 to 16 (PR #1288) 2022-01-02 06:17:06 -05:00
windowHelpers.ts Add validation to opening URLs in external desktop handler (fix #1459) 2022-09-17 22:22:19 -04:00