https://github.com/ojack/electron_external_displays
Hacky way to send the same media stream to multiple displays in electron.
https://github.com/ojack/electron_external_displays
electron
Last synced: about 1 month ago
JSON representation
Hacky way to send the same media stream to multiple displays in electron.
- Host: GitHub
- URL: https://github.com/ojack/electron_external_displays
- Owner: ojack
- License: mit
- Created: 2017-04-16T20:44:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T20:57:42.000Z (about 9 years ago)
- Last Synced: 2025-01-06T06:12:08.655Z (over 1 year ago)
- Topics: electron
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
Hacky way to send the same media stream to multiple displays in electron.
Click to show test pattern or local user media in each external display.
### To run:
```node install```
```npm run start```
### Why?
I couldn't find a way to share MediaStreamObjects between individual Electron BrowserWindows, without writing to a local file.
### How it works:
Giant transparent window covers all available connected displays. Content is positioned so that it appears full screen in external monitors.
(output.js)
UI windows sends information to displays via IPC. Stream preview window on main screen is positioned relative to UI window (buggy)
(ui.js)