git ssb


uxer / %HejSGKskd4b5fNOuk6o…


johnnyscript committed pre git-ssbLatest: 079e8d8 on 8/1/2016, 12:06:20 AM

avconv -f rawvideo -pix_fmt rgba -s 1280x768 -i tcp://localhost:2233 -c:v h264


Clone this repo, and install electron if you haven't already.

npm install electron-prebuilt -g

To run the app, cd into this repo and

npm start


app.js is the "main thread", entry.js is the "browser thread". I found this distinction to be odd, but w/e. It appears you can do everything you need to from the browser thread, plus you're in the window/DOM context. But you must have both.

Most examples I saw out there put the app menu (at the OS level) logic in the browser thread. I put in the main thread, saving on IPC calls.

Noteworthy from this example is calling spawn and fs from the browser thread.

npm start copies entry.js as is to public/bundle.js, a vestige of browserify bundling :`^D

Built with git-ssb-web